Don't die if id has not yet been seen for idle support

This commit is contained in:
Stefan `Sec` Zehl 2012-01-02 20:13:52 +01:00
parent 78c1d5b364
commit 037bee9103
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def sendpos():
for (id,(b,t,r)) in info.items():
if b != 0:
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)
else:
if r==1: