From 0e7b93abd1528759adeecdbf4f28d1b9d8a6331e Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 31 Dec 2022 15:13:17 +1100 Subject: [PATCH] Fix to make sure we resend the EMSI_REQ banner --- app/Classes/Protocol/EMSI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Classes/Protocol/EMSI.php b/app/Classes/Protocol/EMSI.php index 2baf1e1..9ae2b92 100644 --- a/app/Classes/Protocol/EMSI.php +++ b/app/Classes/Protocol/EMSI.php @@ -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);