From d8982dba81fe56a16e10f80b01e5f262e4b3b0ae Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sat, 9 Jan 2016 22:25:44 -0800 Subject: [PATCH] Pass result of connect handler up to engineio --- socketio/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socketio/server.py b/socketio/server.py index 0f22f98..f54ec80 100644 --- a/socketio/server.py +++ b/socketio/server.py @@ -335,6 +335,7 @@ class Server(object): self.manager.disconnect(sid, namespace) self._send_packet(sid, packet.Packet(packet.ERROR, namespace=namespace)) + return False else: self._send_packet(sid, packet.Packet(packet.CONNECT, namespace=namespace)) @@ -393,7 +394,7 @@ class Server(object): def _handle_eio_connect(self, sid, environ): """Handle the Engine.IO connection event.""" self.environ[sid] = environ - self._handle_connect(sid, '/') + return self._handle_connect(sid, '/') def _handle_eio_message(self, sid, data): """Dispatch Engine.IO messages."""