mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24: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
|
* @throws \Icewind\SMB\InvalidHostException
|
||||||
*/
|
*/
|
||||||
protected function connect() {
|
protected function connect() {
|
||||||
if ($this->state and is_resource($this->state)) {
|
if ($this->state and $this->state instanceof NativeShare) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue