Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

smb: check smb connection is closed - fixes #6735

happyxhwd376fb1df25c
diff --git a/backend/smb/connpool.go b/backend/smb/connpool.go
index d4bed787c..867c73201 100644
--- a/backend/smb/connpool.go
+++ b/backend/smb/connpool.go
@@ -81,7 +81,7 @@ func (c *conn) closed() bool {
// list the shares
_, nopErr = c.smbSession.ListSharenames()
}
- return nopErr == nil
+ return nopErr != nil
}
// Show that we are using a SMB session