Do cleanup on SSLClients as well

develop
Sven Slootweg 13 years ago
parent ca9d12bb9c
commit e2b7d211e8

@ -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:

Loading…
Cancel
Save