Преглед на файлове

disconnect air before shutting down

Rodja Trappe преди 1 година
родител
ревизия
ab9d1a3ae0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)