Skip to content
Snippets Groups Projects
Commit 8375fd8a authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Fixed exit of main and pygame gui

parent 610e930e
No related branches found
No related tags found
No related merge requests found
Pipeline #44939 passed
......@@ -44,7 +44,7 @@ def main(cli_args=None):
game_server.terminate()
if pygame_gui is not None and pygame_gui.is_alive():
print("Terminate pygame gui")
game_server.terminate()
pygame_gui.terminate()
time.sleep(0.1)
......
......@@ -669,6 +669,7 @@ class PyGameGUI:
except (KeyboardInterrupt, SystemExit):
self.running = False
self.disconnect_websockets()
pygame.quit()
sys.exit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment