Commits

Arkaitz Jimenez committed b77d109

The init call needs to be called after init basics of we want others(Mixins) to use stuff like self.socket

Comments (0)

Files changed (1)

socketio/namespace.py

 
 
     def __init__(self, environ, ns_name, request=None):
-        super(BaseNamespace,self).__init__()
         self.environ = environ
         self.socket = environ['socketio']
         self.request = request
                                     # list means totally closed.
         self.ack_count = 0
         self.jobs = []
+        super(BaseNamespace,self).__init__()
 
     def _get_next_ack(self):
         # TODO: this is currently unused, but we'll probably need it to implement