Fix resume for files being sent, and dont throw exception if we cannot open a file to send
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 27s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m34s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s

This commit is contained in:
Deon George 2024-11-06 00:18:29 +11:00
parent b5d2479098
commit c2197ecf7c
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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;
}
}