Fix for when NR mode is active

This commit is contained in:
Deon George 2023-07-19 16:34:09 +10:00
parent f9a74578ff
commit e1169335be
2 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,8 @@ class Receive extends Base
case 'fd':
return is_resource($this->f);
case 'recvmtime':
case 'recvsize':
case 'mtime':
case 'nameas':
case 'size':

View File

@ -874,8 +874,8 @@ final class Binkp extends BaseProtocol
if ($this->recv->ready
&& $this->recv->nameas
&& (! strncasecmp(Arr::get($file,'file.name'),$this->recv->nameas,self::MAX_PATH))
&& $this->recv->mtime === Arr::get($file,'file.mtime')
&& $this->recv->size === Arr::get($file,'file.size')
&& $this->recv->recvmtime === Arr::get($file,'file.mtime')
&& $this->recv->recvsize === Arr::get($file,'file.size')
&& $this->recv->pos === $file['offs'])
{
$this->recv->open($file['offs']<0,$file['flags']);