Fix some performance issues

This commit is contained in:
RainLoop Team 2014-06-23 20:14:47 +04:00
parent 5b465f5337
commit 40a0f8b821
5 changed files with 56 additions and 8 deletions

View file

@ -2272,6 +2272,8 @@ class ImapClient extends \MailSo\Net\NetClient
$this->writeLog('Start Callback for '.$sParent.' / '.$sLiteralAtomUpperCase.
' - try to read '.$iLiteralLen.' bytes.', \MailSo\Log\Enumerations\Type::NOTE);
$this->bRunningCallback = true;
try
{
\call_user_func($this->aFetchCallbacks[$sFetchKey],
@ -2330,6 +2332,8 @@ class ImapClient extends \MailSo\Net\NetClient
}
\MailSo\Base\Loader::IncStatistic('NetRead', $iLiteralLen);
$this->bRunningCallback = false;
}
return $bResult;