Browse Source

disconnect air before shutting down

Rodja Trappe 1 năm trước cách đây
mục cha
commit
ab9d1a3ae0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nicegui/nicegui.py

+ 1 - 1
nicegui/nicegui.py

@@ -121,9 +121,9 @@ async def _shutdown() -> None:
     """Handle the shutdown event."""
     if app.native.main_window:
         app.native.main_window.signal_server_shutdown()
+    air.disconnect()
     app.stop()
     run.tear_down()
-    air.disconnect()
 
 
 @app.exception_handler(404)