From 5af4e8446ccc5beba95511cf6ec0a005a384f6df Mon Sep 17 00:00:00 2001 From: sidya82 Date: Wed, 2 Apr 2014 19:32:19 +0200 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/superTornado.py b/superTornado.py index cbc6264..a634d95 100644 --- a/superTornado.py +++ b/superTornado.py @@ -251,13 +251,13 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): socket.setdefaulttimeout(5) f = urlopen(GlobalVars.urlCamera) isData = False - while(data != "--MOBOTIX_Fast_Serverpush--") - data = f.readline().rstrip('\r\n') - if isData == True: - temp.write(data) - if data == "ENDSECTIONEVENT" : - isData = True - data = f.read() + while(data != "--MOBOTIX_Fast_Serverpush--"): + data = f.readline().rstrip('\r\n') + if isData == True: + temp.write(data) + if data == "ENDSECTIONEVENT" : + isData = True + data = f.read() encoded = base64.b64encode(data) f.close() self.write_message(encoded)