Skip to content

Commit

Permalink
make exit() check if app_id is played atm
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Dec 3, 2016
1 parent 3b006bd commit 997ec86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dota2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ def exit(self):
if self._retry_welcome_loop:
self._retry_welcome_loop.kill()

self.steam.current_games_played.remove(self.app_id)
self.steam.games_played(self.steam.current_games_played)
if self.app_id in self.steam.current_games_played:
self.steam.current_games_played.remove(self.app_id)
self.steam.games_played(self.steam.current_games_played)

self._set_connection_status(GCConnectionStatus.NO_SESSION)

0 comments on commit 997ec86

Please sign in to comment.