Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
8375fd8a
Commit
8375fd8a
authored
1 year ago
by
Fabian Heinrich
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
overcooked_simulator/__main__.py
+1
-1
1 addition, 1 deletion
overcooked_simulator/__main__.py
overcooked_simulator/gui_2d_vis/overcooked_gui.py
+1
-0
1 addition, 0 deletions
overcooked_simulator/gui_2d_vis/overcooked_gui.py
with
2 additions
and
1 deletion
overcooked_simulator/__main__.py
+
1
−
1
View file @
8375fd8a
...
...
@@ -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
()
py
game_
gui
.
terminate
()
time
.
sleep
(
0.1
)
...
...
This diff is collapsed.
Click to expand it.
overcooked_simulator/gui_2d_vis/overcooked_gui.py
+
1
−
0
View file @
8375fd8a
...
...
@@ -669,6 +669,7 @@ class PyGameGUI:
except
(
KeyboardInterrupt
,
SystemExit
):
self
.
running
=
False
self
.
disconnect_websockets
()
pygame
.
quit
()
sys
.
exit
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment