(self)
| 218 | self.update_menu(no_dialog=True) |
| 219 | |
| 220 | def _on_disconnect(self): |
| 221 | if self.on_disconnect_callback: |
| 222 | self.on_disconnect_callback() |
| 223 | if self.ws_interface is not None and self.ws_interface.is_auto_reconnecting: |
| 224 | threading.Thread(target=self._wait_to_disconnect, daemon=True).start() |
| 225 | else: |
| 226 | self.is_connected = False |
| 227 | self.update_menu(no_dialog=True) |
| 228 | |
| 229 | def _wait_to_disconnect(self): |
| 230 | """ |
nothing calls this directly
no test coverage detected