Explorar o código

keep tasks running on shutdown (they could be shutdown handlers)

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
ae5211849e
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      nicegui/nicegui.py

+ 0 - 2
nicegui/nicegui.py

@@ -64,8 +64,6 @@ def handle_shutdown() -> None:
     globals.state = globals.State.STOPPING
     for t in globals.shutdown_handlers:
         safe_invoke(t)
-    for t in background_tasks.running_tasks:
-        t.cancel()
     globals.state = globals.State.STOPPED