Fix for App\Classes\File\Tic::close must be compatible with parent
This commit is contained in:
parent
6498e364fb
commit
005aa88514
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user