瀏覽代碼

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

Falko Schindler 2 年之前
父節點
當前提交
ae5211849e
共有 1 個文件被更改,包括 0 次插入2 次删除
  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