Skip to content

Commit

Permalink
fix connection not release bug (#353)
Browse files Browse the repository at this point in the history
* fix connection not release bug

* Address Nicole00's comment as agreed in review

---------

Co-authored-by: Wey Gu <[email protected]>
  • Loading branch information
ghjhhyuyuy and wey-gu committed Aug 12, 2024
1 parent 4f27c35 commit f9ab9a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nebula3/gclient/net/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def authenticate(self, user_name, password):
try:
resp = self._connection.authenticate(user_name, password)
if resp.error_code != ErrorCode.SUCCEEDED:
self._connection.is_used = False
raise AuthFailedException(resp.error_msg)
return AuthResult(
resp.session_id, resp.time_zone_offset_seconds, resp.time_zone_name
Expand Down

0 comments on commit f9ab9a4

Please sign in to comment.