Skip to content

Commit

Permalink
Merge branch 'master' into update-transport
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee authored Jan 4, 2023
2 parents 3fe937a + 74db805 commit 05c98df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nebula3/gclient/net/SessionPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ def _remove_idle_unusable_session(self):

# release idle session and remove from the pool
if idle_time > self._configs.idle_time:
conn = session._connection
session.release()
session._connection.close()
conn.close()
self._idle_sessions.remove(session)

def _period_detect(self):
Expand Down

0 comments on commit 05c98df

Please sign in to comment.