Commit 7cb64ba1 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

--nogui: if server connection goes away, quit program

parent 5730b7fb
......@@ -783,6 +783,8 @@ class HumanClient(Client):
scene = Internal.scene
if scene and game and scene.game == game:
scene.game = None
if not Options.gui:
Internal.mainWindow.close()
def serverDisconnected(self, unusedReference):
"""perspective calls us back"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment