connectors/WAMP/__init__.py
changeset 1765 ccf59c1f0b45
parent 1753 19f19c66b67e
child 1782 5b6ad7a7fd9d
equal deleted inserted replaced
1764:d5df428640ff 1765:ccf59c1f0b45
   135             else:
   135             else:
   136                 _WampConnection = threads.blockingCallFromThread(
   136                 _WampConnection = threads.blockingCallFromThread(
   137                     reactor, RegisterWampClient)
   137                     reactor, RegisterWampClient)
   138             if not _WampSessionEvent.wait(5):
   138             if not _WampSessionEvent.wait(5):
   139                 _WampConnection = stopConnecting()
   139                 _WampConnection = stopConnecting()
   140                 raise Exception, _("WAMP connection timeout")
   140                 raise Exception(_("WAMP connection timeout"))
   141 
   141 
   142         def __del__(self):
   142         def __del__(self):
   143             global _WampConnection
   143             global _WampConnection
   144             _WampConnection.disconnect()
   144             _WampConnection.disconnect()
   145             #
   145             #