Commits

Anonymous committed a759d5b

Create WSGIServer.clients if it doesn't exist.

See issue #35.

Comments (0)

Files changed (1)

geventwebsocket/handler.py

 
         # Since we're now a websocket connection, we don't care what the
         # application actually responds with for the http response
+        if not hasattr(self.server, "clients"):
+            self.server.clients = {}
         try:
             self.server.clients[self.client_address] = Client(self.client_address, self.websocket)
             self.application(self.environ, lambda s, h: [])