Only add items to the queue when the queue is empty

This commit is contained in:
Deon George 2024-04-12 21:22:27 +10:00
parent 1923eb429f
commit 03ca4c10b1

View File

@ -1333,7 +1333,8 @@ final class Binkp extends BaseProtocol
&& (! $this->sessionGet(self::SE_NOFILES))
&& (! $this->send->fd))
{
$this->getFiles($this->node);
if (! $this->send->togo_count)
$this->getFiles($this->node);
// Open our next file to send
if ($this->send->togo_count && ! $this->send->fd) {