From 56d49b60212c1966a0b833cc729010eefd670d6c Mon Sep 17 00:00:00 2001 From: Lekuru Date: Sat, 23 Mar 2024 13:56:31 +0100 Subject: [PATCH] Reset `spectating` target when calling `stop_spectating` --- osu/bancho/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osu/bancho/client.py b/osu/bancho/client.py index d118bdd..0c690f9 100644 --- a/osu/bancho/client.py +++ b/osu/bancho/client.py @@ -365,6 +365,7 @@ def stop_spectating(self): self.logger.info(f"Stopped spectating {self.spectating.name}.") self.enqueue(ClientPackets.STOP_SPECTATING, dequeue=False) + self.spectating = None self.status.reset() self.update_status()