Skip to content

Commit

Permalink
Explicitly close agent connection in top level agent class.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 17, 2014
1 parent e921b02 commit e940402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent.py
Expand Up @@ -72,7 +72,8 @@ def _connect(self, conn):
self._keys = tuple(keys)

def _close(self):
#self._conn.close()
if self._conn is not None:
self._conn.close()
self._conn = None
self._keys = ()

Expand Down

0 comments on commit e940402

Please sign in to comment.