Pārlūkot izejas kodu

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

Falko Schindler 2 gadi atpakaļ
vecāks
revīzija
ae5211849e
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  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