Don't die if id has not yet been seen for idle support
This commit is contained in:
parent
78c1d5b364
commit
037bee9103
|
@ -38,7 +38,7 @@ def sendpos():
|
||||||
for (id,(b,t,r)) in info.items():
|
for (id,(b,t,r)) in info.items():
|
||||||
if b != 0:
|
if b != 0:
|
||||||
idle[id]=time.time()
|
idle[id]=time.time()
|
||||||
if idle[id]+30<time.time():
|
if id in idle and idle[id]+30<time.time():
|
||||||
print "idle-ignoring %s"%(id)
|
print "idle-ignoring %s"%(id)
|
||||||
else:
|
else:
|
||||||
if r==1:
|
if r==1:
|
||||||
|
|
Loading…
Reference in New Issue