Skip to content

Commit aad408a

Browse files
committed
gh-2985: Fixed startup serve UnboundLocalError.
1 parent da1c646 commit aad408a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sanic/mixins/startup.py

+1
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ def serve(
10331033

10341034
socks = []
10351035
sync_manager = Manager()
1036+
worker_state: Mapping[str, Any] = { "state": "NONE" }
10361037
setup_ext(primary)
10371038
exit_code = 0
10381039
try:

0 commit comments

Comments
 (0)