Skip to content

Commit

Permalink
moving empty send request to wsgi_server.stop() to release wsgi shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kolve committed Sep 10, 2020
1 parent 24398dc commit 8ba168f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion ai2thor/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,6 @@ def start(

def stop(self):
self.stop_unity()
self.server.send({})
self.server.stop()
self.stop_container()
self.unlock_release()
Expand Down
1 change: 1 addition & 0 deletions ai2thor/wsgi_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,6 @@ def unity_params(self):
return params

def stop(self):
self.send({})
self.wsgi_server.shutdown()

0 comments on commit 8ba168f

Please sign in to comment.