mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
ignore any errors while trying to send the close command, the process might already be dead
This commit is contained in:
parent
b594f7c408
commit
4411326dde
1 changed files with 3 additions and 2 deletions
|
|
@ -117,8 +117,9 @@ class Connection extends RawConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function close($terminate = true) {
|
public function close($terminate = true) {
|
||||||
if (is_resource($this->getInputStream())) {
|
if (get_resource_type($this->getInputStream()) === 'stream') {
|
||||||
$this->write('close' . PHP_EOL);
|
// ignore any errors while trying to send the close command, the process might already be dead
|
||||||
|
@$this->write('close' . PHP_EOL);
|
||||||
}
|
}
|
||||||
parent::close($terminate);
|
parent::close($terminate);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue