modifié: superTornado.py
This commit is contained in:
parent
1cd65fd995
commit
5af4e8446c
@ -251,7 +251,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
socket.setdefaulttimeout(5)
|
socket.setdefaulttimeout(5)
|
||||||
f = urlopen(GlobalVars.urlCamera)
|
f = urlopen(GlobalVars.urlCamera)
|
||||||
isData = False
|
isData = False
|
||||||
while(data != "--MOBOTIX_Fast_Serverpush--")
|
while(data != "--MOBOTIX_Fast_Serverpush--"):
|
||||||
data = f.readline().rstrip('\r\n')
|
data = f.readline().rstrip('\r\n')
|
||||||
if isData == True:
|
if isData == True:
|
||||||
temp.write(data)
|
temp.write(data)
|
||||||
|
Reference in New Issue
Block a user