Skip to content

Commit 6183064

Browse files
ghjhhyuyuywey-gu
andauthored
fix connection not release bug (#353)
* fix connection not release bug * Address Nicole00's comment as agreed in review --------- Co-authored-by: Wey Gu <weyl.gu@gmail.com>
1 parent 0f832f6 commit 6183064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nebula3/gclient/net/Connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def authenticate(self, user_name, password):
171171
try:
172172
resp = self._connection.authenticate(user_name, password)
173173
if resp.error_code != ErrorCode.SUCCEEDED:
174+
self._connection.is_used = False
174175
raise AuthFailedException(resp.error_msg)
175176
return AuthResult(
176177
resp.session_id, resp.time_zone_offset_seconds, resp.time_zone_name

0 commit comments

Comments
 (0)