Skip to content

Commit

Permalink
Update uvicorn/supervisors/basereload.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
  • Loading branch information
StarHeartHunt and Kludex authored Mar 28, 2023
1 parent 1cfd29c commit 353c0af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uvicorn/supervisors/basereload.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def restart(self) -> None:
self.process.start()

def shutdown(self) -> None:
if sys.platform != "win32": # pragma: py-win32
self.process.terminate()
else:
if sys.platform == "win32":
self.should_exit.set() # pragma: py-not-win32
else:
self.process.terminate() # pragma: py-win32
self.process.join()

for sock in self.sockets:
Expand Down

0 comments on commit 353c0af

Please sign in to comment.