modifié: superTornado.py
This commit is contained in:
parent
18ea1de564
commit
be80c006a6
@ -105,7 +105,7 @@ class WSocketHandler(tornado.websocket.WebSocketHandler):
|
|||||||
data = f.read()
|
data = f.read()
|
||||||
encoded = base64.b64encode(data)
|
encoded = base64.b64encode(data)
|
||||||
self.write_message(encoded)
|
self.write_message(encoded)
|
||||||
except tornado.websocket.WebSocketClosedError,e:
|
except Exception, e :
|
||||||
print e
|
print e
|
||||||
break
|
break
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
Reference in New Issue
Block a user