Skip to content

Commit

Permalink
Exit cleanly when playing a remote game.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 196814453
  • Loading branch information
tewalds committed May 16, 2018
1 parent 183456a commit 92a8ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pysc2/env/remote_sc2_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ def _launch_remote(self, host, host_port, lan_port, race, interface):
def _restart(self):
# Can't restart since it's not clear how you'd coordinate that with the
# other players.
self._controllers[0].leave()
raise RestartException("Can't restart")

0 comments on commit 92a8ba3

Please sign in to comment.