~martijnbraam/pyatem

a8d69070992bbf2806c4bff29e5f3b04f81c72e4 — Martijn Braam 1 year, 6 months ago 5c97692
openswitcher: improve reconnect logging
1 files changed, 3 insertions(+), 3 deletions(-)

M gtk_switcher/atemwindow.py
M gtk_switcher/atemwindow.py => gtk_switcher/atemwindow.py +3 -3
@@ 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