소스 검색

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