Fix EMSI session undefined, other minor cosmetic code changes

This commit is contained in:
Deon George
2022-12-04 20:45:33 +11:00
parent 369f8e48fe
commit 4d3d57fdcd
2 changed files with 4 additions and 3 deletions

View File

@@ -1173,6 +1173,8 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
{
Log::debug(sprintf('%s:+ wazoosend [%d]',self::LOGKEY,$zap));
$z = NULL;
// See if there is anything to add to the outbound
// Add our mail to the queue if we have authenticated
if ($this->node->aka_authed)
@@ -1186,6 +1188,6 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
}
Log::debug(sprintf('%s:- Finished sending',self::LOGKEY));
return ($z->zmodem_senddone()<0);
return (($z && $z->zmodem_senddone())<0);
}
}