When originating a session, send anything received via the queue
This commit is contained in:
@@ -273,10 +273,11 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
/**
|
||||
* Setup our ZMODEM session
|
||||
*
|
||||
* @param bool $force_queue Not used here
|
||||
* @return int
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function protocol_session(): int
|
||||
public function protocol_session(bool $force_queue=FALSE): int
|
||||
{
|
||||
$proto = $this->originate ? $this->node->optionGet(self::P_MASK) : $this->optionGet(self::P_MASK);
|
||||
|
||||
@@ -301,7 +302,7 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
* @param int $canzap
|
||||
* @return int
|
||||
*/
|
||||
public function zmodem_receive(SocketClient $client,int $canzap,Receive $recv,Address $ao): int
|
||||
public function zmodem_receive(SocketClient $client,int $canzap,Receive $recv,Address $ao,bool $force_queue=FALSE): int
|
||||
{
|
||||
Log::debug(sprintf('%s:+ Starting ZModem Receive [%d]',self::LOGKEY,$canzap));
|
||||
|
||||
@@ -1489,7 +1490,7 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
$filesleft = -1;
|
||||
|
||||
} else {
|
||||
$this->recv->new($file,$ao);
|
||||
$this->recv->new($file,$ao,$this->force_queue);
|
||||
}
|
||||
|
||||
return self::ZFILE;
|
||||
|
Reference in New Issue
Block a user