Pārlūkot izejas kodu

use more reliable tab ID as connection indicator (might fix #2915)

Falko Schindler 1 gadu atpakaļ
vecāks
revīzija
200dea9acb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      nicegui/client.py

+ 1 - 1
nicegui/client.py

@@ -94,7 +94,7 @@ class Client:
     @property
     def has_socket_connection(self) -> bool:
         """Return True if the client is connected, False otherwise."""
-        return self.environ is not None
+        return self.tab_id is not None
 
     @property
     def head_html(self) -> str: