From a8d69070992bbf2806c4bff29e5f3b04f81c72e4 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Sun, 14 Nov 2021 03:34:28 +0100 Subject: [PATCH] openswitcher: improve reconnect logging --- gtk_switcher/atemwindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk_switcher/atemwindow.py b/gtk_switcher/atemwindow.py index 33ed285..97ef613 100644 --- a/gtk_switcher/atemwindow.py +++ b/gtk_switcher/atemwindow.py @@ -217,11 +217,11 @@ class AtemWindow(SwitcherPage, MediaPage, AudioPage, CameraPage): widget.forall(self.apply_css, provider) def on_switcher_ip_changed(self, *args): - print("Settings changed!") - + print("Connection settings changed") + print("Closing old connection...") self.connection.die() self.connection.join(timeout=1) - + print("Starting new connection to {}".format(self.settings.get_string('switcher-ip'))) self.connection = AtemConnection(self.on_change, self.on_disconnect, self.on_transfer_progress, self.on_download_done) self.connection.daemon = True -- 2.34.2