浏览代码

app.shutdown doesn't need to be async

Falko Schindler 2 年之前
父节点
当前提交
357c9246f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/app.py

+ 1 - 1
nicegui/app.py

@@ -38,7 +38,7 @@ class App(FastAPI):
         """
         globals.shutdown_handlers.append(handler)
 
-    async def shutdown(self) -> None:
+    def shutdown(self) -> None:
         """Programmatically shut down NiceGUI.
 
         Only possible when auto-reload is disabled.