Skip to content

Commit

Permalink
cache the actual connection used
Browse files Browse the repository at this point in the history
  • Loading branch information
Trygve Aspenes committed May 25, 2023
1 parent 71a57d3 commit 95c847f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trollmoves/movers.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_connection(self, hostname, port, username=None):
timer = CTimer(int(self.attrs.get('connection_uptime', 30)),
self.delete_connection, (connection,))
timer.start()
self.active_connections[(hostname, port, username)] = connection, timer
self.active_connections[(self.destination.hostname, port, username)] = connection, timer

return connection

Expand Down

0 comments on commit 95c847f

Please sign in to comment.