Browse Source

app.shutdown doesn't need to be async

Falko Schindler 2 năm trước cách đây
mục cha
commit
357c9246f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.