Fix to make sure we resend the EMSI_REQ banner

This commit is contained in:
Deon George 2022-12-31 15:13:17 +11:00
parent 91fc61e170
commit 0e7b93abd1

View File

@ -112,6 +112,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
* Create the EMSI_DAT
*
* @return string
* @throws Exception
*/
private function emsi_makedat(): string
{
@ -904,7 +905,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
if ($this->client->timer_expired($t1))
return self::TIMEOUT;
if (($ch == self::TIMEOUT) && $this->client->timer_expired($t2)) {
if (($ch == self::TIMEOUT) || $this->client->timer_expired($t2)) {
if (! $got) {
$this->emsi_banner();
$t2 = $this->client->timer_set(self::EMSI_RESEND_TO);