From e2b7d211e86629959656919207ce5b076ef46619 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 10 Jun 2012 12:53:38 +0200 Subject: [PATCH] Do cleanup on SSLClients as well --- daemon/node/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/node/core.py b/daemon/node/core.py index b6dd893..07a642e 100755 --- a/daemon/node/core.py +++ b/daemon/node/core.py @@ -27,11 +27,12 @@ while True: for sock in readable: try: data = sock.recv(1024) + cur_client = client_map[sock.fileno()] if data: - cur_client = client_map[sock.fileno()] cur_client.process_data(data) else: + cur_client.end() select_inputs = remove_from_list(select_inputs, sock) print "NOTICE: Client disconnected" except ssl.SSLError, err: