Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stale websockets, breaking connector.stop()
+ fixes (sousa-andre#18) + Each WebSocket registered by the user is now stored in a list called self.connections. This allows us to iterate over each stored connection object later when the connector.stop() method is called. By unregistering each connection, the method can successfully close the connections as intended. This prevents the occurrence of an infinite loop, which could happen if the @connector.ws.register() decorator was used to register a connection before
- Loading branch information