Skip to content

Commit

Permalink
fix: Autoreload error because reausing old sockets
Browse files Browse the repository at this point in the history
Fixing issues: 
# 129
# 118
# 111
# 108
  • Loading branch information
godjangollc authored and pgjones committed Oct 28, 2023
1 parent 42ac5db commit 4854ffd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hypercorn/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4854ffd

Please sign in to comment.