callAt fixed

master
Stefan Krulj 14 years ago
parent 882ec95e0a
commit 4b510b76b9
  1. 3
      brathuhn.py

@ -1,4 +1,5 @@
import xmpp, os, sys, time, traceback import xmpp, os, sys, time, traceback
import threading
from config import * from config import *
@ -257,7 +258,7 @@ def loop():
print "---------------------------" print "---------------------------"
def callAt(func,_time,*args): def callAt(func,_time,*args):
s=time.time()-_time s=_time-time.time()
def run(): def run():
if s>0: if s>0:
time.sleep(s) time.sleep(s)

Loading…
Cancel
Save