mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Fix check if share is already connected
This commit is contained in:
parent
fdb606257d
commit
b271e51d4b
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class NativeShare implements IShare {
|
|||
* @throws \Icewind\SMB\InvalidHostException
|
||||
*/
|
||||
protected function connect() {
|
||||
if ($this->state and is_resource($this->state)) {
|
||||
if ($this->state and $this->state instanceof NativeShare) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue