commit f441ec722be08338e3e36293a4bcb7bef4264915
parent 8b8fdd48087a5a9439599cd88e5f274a4bf1dcc7
Author: ThomasV <thomasv@gitorious>
Date: Mon, 5 Dec 2011 15:54:40 +0300
fixes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/server.py b/server/server.py
@@ -367,7 +367,7 @@ def client_thread(ipaddr,conn):
conn.close()
return
- print time.asctime(), "session", ipaddr, session_id, addresses[0], len(addresses)
+ print time.asctime(), "session", ipaddr, session_id, addresses[0] if addresses else addresses, len(addresses)
sessions[session_id] = {}
for a in addresses:
@@ -386,7 +386,7 @@ def client_thread(ipaddr,conn):
ret = {}
for addr in addresses:
status = store.get_status( addr )
- last_status = sessions[session_id].get( addr )
+ last_status = addresses.get( addr )
if last_status != status:
sessions[session_id][addr] = status
ret[addr] = status