diff --git a/backend/sftp/sftp.go b/backend/sftp/sftp.go index 28a71ea14..4fd88ab48 100644 --- a/backend/sftp/sftp.go +++ b/backend/sftp/sftp.go @@ -815,13 +815,13 @@ func (f *Fs) drainPool(ctx context.Context) (err error) { if cErr := c.closed(); cErr == nil { cErr = c.close() if cErr != nil { - err = cErr + fs.Debugf(f, "Ignoring error closing connection: %v", cErr) } } f.pool[i] = nil } f.pool = nil - return err + return nil } // NewFs creates a new Fs object from the name and root. It connects to