Fix resume for files being sent, and dont throw exception if we cannot open a file to send
This commit is contained in:
parent
b5d2479098
commit
c2197ecf7c
@ -108,6 +108,6 @@ final class File extends Send
|
||||
|
||||
public function seek(int $pos): bool
|
||||
{
|
||||
return (fseek($this->f,$pos,SEEK_SET) === 0);
|
||||
return (fseek($this->fd,$pos,SEEK_SET) === 0);
|
||||
}
|
||||
}
|
@ -245,7 +245,10 @@ class Send extends Base
|
||||
return TRUE;
|
||||
|
||||
} else {
|
||||
throw new Exception('No files to open');
|
||||
Log::error(sprintf('%s:- No files to open',self::LOGKEY));
|
||||
$this->index = NULL;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user