Fix for App\Classes\File\Tic::close must be compatible with parent

This commit is contained in:
Deon George 2023-09-05 22:07:27 +12:00
parent 6498e364fb
commit 005aa88514
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
namespace App\Classes\File;
use App\Classes\Node;
use App\Models\Address;
use App\Models\File;
use App\Classes\FTN\Tic as FTNTic;
@ -53,7 +54,7 @@ final class Tic extends Send
}
}
public function close(bool $successful): void
public function close(bool $successful,Node $node): void
{
if ($successful)
$this->complete = TRUE;

View File

@ -236,7 +236,7 @@ abstract class Protocol
protected function error_close(): void
{
if ($this->send->fd)
$this->send->close(FALSE);
$this->send->close(FALSE,$this->node);
if ($this->recv->fd)
$this->recv->close();