From: Bernhard Tittelbach Date: Wed, 16 Sep 2009 13:15:04 +0000 (+0000) Subject: msg X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=065dac64976554fc435908c1cb82dc559ee7be53;p=svn42.git msg --- 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