reconnecting works

This commit is contained in:
BarsTiger
2022-05-19 20:06:28 +03:00
parent 36b66742d7
commit 62a0bcf998

View File

@@ -129,6 +129,7 @@ def handle_connection_to_server(connection) -> None:
print("Connected to server")
print("Server returned: " + str(connection))
try:
ui.availableDevices.clear()
for client_id_av in list(client.channels_info(prefix_filter='admin-')['channels']):
ui.availableDevices.addItem(client_id_av.split('-')[1])
except pusher.errors.PusherBadRequest: