Commits

Ernesto Menéndez  committed c2c6877

agregue un try al send del websocket que me crasheaba el sistema si se desconectaba el cliente

  • Participants
  • Parent commits 4b9228e

Comments (0)

Files changed (1)

File nxweb/apps/cmanws/__init__.py

 
     data = dict(_event=event)
     data.update(args)
-
-    websocket.send(json.dumps(data))
-
-    return True
+    try:
+        websocket.send(json.dumps(data))
+        return True
+    except:
+        return False
 
 
 def send_event__task_completed(pkid, task_id):