msg
authorBernhard Tittelbach <xro@realraum.at>
Wed, 16 Sep 2009 13:15:04 +0000 (13:15 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Wed, 16 Sep 2009 13:15:04 +0000 (13:15 +0000)
update-web-status.py

index 390eb2e..d655bc2 100755 (executable)
@@ -114,9 +114,10 @@ def sendXmppMsg(recipients, msg, resource = "torwaechter", addtimestamp = True,
   try:
     sppoo = subprocess.Popen(sendxmpp_cmd, stdin=subprocess.PIPE, shell=True)
     sppoo.communicate(input=msg)
-    while ptimeout > 0:
+    timeout_counter=ptimeout
+    while timeout_counter > 0:
       time.sleep(pcheckint)
-      ptimeout -= pcheckint
+      timeout_counter -= pcheckint
       if sppoo.poll():
         logging.debug("XMPPmessage sent: '%s'"  % msg)
         return