summaryrefslogtreecommitdiff
path: root/voctocore/lib/tcpmulticonnection.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/tcpmulticonnection.py')
-rw-r--r--voctocore/lib/tcpmulticonnection.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/voctocore/lib/tcpmulticonnection.py b/voctocore/lib/tcpmulticonnection.py
index 201ecde..5ad4ca2 100644
--- a/voctocore/lib/tcpmulticonnection.py
+++ b/voctocore/lib/tcpmulticonnection.py
@@ -36,7 +36,10 @@ class TCPMultiConnection(object):
return True
- def close_connection(self, conn):
+ def close_connection(self, conn, addr=None):
+ if addr is None:
+ addr = conn.getpeername()
+
self.currentConnections.remove(conn)
- self.log.info('Disconnected Receiver %s', conn.getpeername())
+ self.log.info('Disconnected Receiver %s', addr)
self.log.info('Now %u Receiver connected', len(self.currentConnections))