Selaa lähdekoodia

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

Falko Schindler 2 vuotta sitten
vanhempi
säilyke
ae5211849e
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  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