This commit is contained in:
the-djmaze 2022-11-01 16:37:02 +01:00
parent cd09faa2ac
commit c7df5b9a3e

View file

@ -1171,11 +1171,9 @@ class Actions
*/
protected function initMailClientConnection(): ?Model\Account
{
$oAccount = null;
$oAccount = $this->getAccountFromToken();
if (!$this->MailClient()->IsLoggined()) {
$oAccount = $this->getAccountFromToken();
try {
$oAccount->ImapConnectAndLoginHelper($this->oPlugins, $this->MailClient(), $this->oConfig);
} catch (\MailSo\Net\Exceptions\ConnectionException $oException) {