@ -276,7 +276,7 @@ def loop():
while True:
try:
if reconnect or cl.connected: #TODO check if it works
if reconnect or (not cl.connected): #TODO check if it works
print "--reconnect--"
s=RECONNECT_INTERVAL-(time.time()-last_connect)
if s>0: