From 2ec8f7767efae0ef0a982cb25f435d9c1e50e2b3 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Sat, 6 Oct 2012 15:16:55 +0200 Subject: [PATCH] Fixed an off-by-one error --- brathuhn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brathuhn.py b/brathuhn.py index ce7ca92..52547ab 100644 --- a/brathuhn.py +++ b/brathuhn.py @@ -281,7 +281,7 @@ def callAt(func,_time,*args): global call_ats_id call_ats[call_ats_id]=[func,_time,args] call_ats_id+=1 - return call_ats_id + return call_ats_id-1 def cancelCall(cid): """Remove the call from the list of pending calls