Fix check if share is already connected

This commit is contained in:
Robin Appelman 2014-08-03 14:54:38 +02:00
commit b271e51d4b

View file

@ -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;
} }