Skip to content

Commit

Permalink
Revert "should_exit is not actually used by http". It was being used …
Browse files Browse the repository at this point in the history
…by uvicorn and I hadn't noticed

This reverts commit 3ca8aec.
  • Loading branch information
technillogue committed Jul 2, 2024
1 parent adf8894 commit b93f233
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/cog/server/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def start(self) -> None:

def stop(self) -> None:
log.info("stopping server")
self.should_exit = True

self._thread.join(timeout=5)
if not self._thread.is_alive():
Expand Down

0 comments on commit b93f233

Please sign in to comment.