diff --git a/src/hypercorn/run.py b/src/hypercorn/run.py index 0e037546..4427aba7 100644 --- a/src/hypercorn/run.py +++ b/src/hypercorn/run.py @@ -66,6 +66,7 @@ def shutdown(*args: Any) -> None: if config.use_reloader: wait_for_changes(shutdown_event) shutdown_event.set() + sockets = config.create_sockets() # Recreate the sockets to be used again in the next iteration of the loop. else: active = False