From 065dac64976554fc435908c1cb82dc559ee7be53 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 16 Sep 2009 13:15:04 +0000 Subject: [PATCH] msg --- update-web-status.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-web-status.py b/update-web-status.py index 390eb2e..d655bc2 100755 --- a/update-web-status.py +++ b/update-web-status.py @@ -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 -- 1.7.10.4