modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-18 23:45:54 +01:00
parent af7b8fa2b9
commit 60345c97c6

View File

@ -227,7 +227,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
""" """
try : try :
socket.setdefaulttimeout(5) socket.setdefaulttimeout(5)
f = urlopen(urlCamera) f = urlopen(GlobalVars.urlCamera)
data = f.read() data = f.read()
encoded = base64.b64encode(data) encoded = base64.b64encode(data)
self.write_message(encoded) self.write_message(encoded)