diff --git a/pyartcd/pyartcd/umb_client.py b/pyartcd/pyartcd/umb_client.py index ec7034f..6284a0e 100644 --- a/pyartcd/pyartcd/umb_client.py +++ b/pyartcd/pyartcd/umb_client.py @@ -169,7 +169,7 @@ def on_disconnected(self): self._client.on_disconnected() # notify all pending futures of the disconnection for future_id in self._futures.keys(): - if id == "on_disconnected": + if future_id == "on_disconnected": self._complete_future("on_disconnected", None) else: self._err_future(future_id, IOError("Connection lost"))