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);