Skip to content

Commit

Permalink
Reset spectating target when calling stop_spectating
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Mar 23, 2024
1 parent 474444f commit 56d49b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osu/bancho/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 56d49b6

Please sign in to comment.