1. Łukasz Rekucki
  2. gevent-socketio

Commits

Jeffrey Gelens  committed 6af113f Merge

Merged in lawnsea/gevent-socketio (pull request #5)

  • Participants
  • Parent commits f3c4cdd, 17e4e1e
  • Branches develop

Comments (0)

Files changed (2)

File socketio/handler.py

View file
         if transport in (transports.WebsocketTransport, \
                 transports.FlashSocketTransport):
             self.__class__ = WebSocketHandler
-            self.handle_one_response(call_wsgi_app=False)
+            self.handle_one_response()
             session = self.server.get_session()
         else:
             session = self.server.get_session(session_id)

File socketio/transports.py

View file
             while True:
                 message = websocket.receive()
 
-                if message is None:
+                if not message:
                     session.kill()
                     break
                 else: