Don't remove socket after network error on login
This commit is contained in:
@@ -82,7 +82,6 @@ def login(username, password, host, port, database):
|
||||
finally:
|
||||
_SEMAPHORE.release()
|
||||
except socket.error:
|
||||
_SOCK = None
|
||||
_USER = 0
|
||||
_SESSION = ''
|
||||
return -1
|
||||
|
||||
Reference in New Issue
Block a user