diff --git a/app/Classes/Protocol/EMSI.php b/app/Classes/Protocol/EMSI.php index c2b6a59..3393f8a 100644 --- a/app/Classes/Protocol/EMSI.php +++ b/app/Classes/Protocol/EMSI.php @@ -960,6 +960,9 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface $this->client->iac_bin = true; } + $iaccmd = NULL; + break; + case 0xfb: Log::debug(sprintf('%s: - IAC WILL [%02x]',self::LOGKEY,ord($iac))); $iaccmd = ord($iac); @@ -973,9 +976,15 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface default: Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac))); + $ch = $iac; $iac = NULL; } + if ($iaccmd) { + $iac = $this->client->read(10,1); + $ch = NULL; + } + } while (! is_null($iac)); }