Optimised our sending and receiving of items
This commit is contained in:
@@ -1208,7 +1208,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
while ($this->send->mail($ao)) {
|
||||
$z = new Zmodem;
|
||||
|
||||
if (! $z->zmodem_sendinit($this->client,$zap) && $this->send->total_count)
|
||||
if (! $z->zmodem_sendinit($this->client,$zap) && $this->send->togo_count)
|
||||
$z->zmodem_sendfile($this->send);
|
||||
}
|
||||
|
||||
@@ -1216,7 +1216,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
while ($this->send->files($ao)) {
|
||||
$z = new Zmodem;
|
||||
|
||||
if (! $z->zmodem_sendinit($this->client,$zap) && $this->send->total_count)
|
||||
if (! $z->zmodem_sendinit($this->client,$zap) && $this->send->togo_count)
|
||||
$z->zmodem_sendfile($this->send);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user