mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Resolve #1455
This commit is contained in:
parent
b0211424a7
commit
c73e3637a3
1 changed files with 7 additions and 1 deletions
|
|
@ -184,7 +184,12 @@ class SieveClient extends \MailSo\Net\NetClient
|
||||||
public function Logout() : void
|
public function Logout() : void
|
||||||
{
|
{
|
||||||
if ($this->bIsLoggined) {
|
if ($this->bIsLoggined) {
|
||||||
$this->sendRequestWithCheck('LOGOUT');
|
try {
|
||||||
|
$this->sendRequestWithCheck('LOGOUT');
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/1455
|
||||||
|
$this->writeLogException($e, \LOG_WARNING, false);
|
||||||
|
}
|
||||||
$this->bIsLoggined = false;
|
$this->bIsLoggined = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -408,6 +413,7 @@ class SieveClient extends \MailSo\Net\NetClient
|
||||||
if (null === $sResponseBuffer) {
|
if (null === $sResponseBuffer) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// \MailSo\Imap\Enumerations\ResponseStatus
|
||||||
$bEnd = \in_array(\substr($sResponseBuffer, 0, 2), array('OK', 'NO'));
|
$bEnd = \in_array(\substr($sResponseBuffer, 0, 2), array('OK', 'NO'));
|
||||||
// convertEndOfLine
|
// convertEndOfLine
|
||||||
$sLine = \trim($sResponseBuffer);
|
$sLine = \trim($sResponseBuffer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue