mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
remove unneeded destructor
This commit is contained in:
parent
7035de036c
commit
810285ab93
1 changed files with 0 additions and 9 deletions
|
|
@ -59,13 +59,4 @@ class NativeServer extends Server {
|
|||
public function getShare($name) {
|
||||
return new NativeShare($this, $name);
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
if ($this->state and is_resource($this->state)) {
|
||||
NativeShare::registerErrorHandler();
|
||||
smbclient_state_free($this->state);
|
||||
NativeShare::restoreErrorHandler();
|
||||
}
|
||||
unset($this->state);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue