From d376fb1df25ca0203347c54b032685239d61c371 Mon Sep 17 00:00:00 2001 From: happyxhw <44490504+happyxhw@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:25:25 +0800 Subject: [PATCH] smb: check smb connection is closed - fixes #6735 --- backend/smb/connpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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