From 25d6a48f0aa9bab8142b7c6659d7c6095b3fa6c3 Mon Sep 17 00:00:00 2001 From: James Browning Date: Fri, 17 May 2024 06:13:32 -0700 Subject: [PATCH 4/5] xgps: Adjust Base.watch to use the given socket, not one from __main__ This will come in handy when proper {dis,re}connect code show up. --- clients/xgps.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/xgps.py.in b/clients/xgps.py.in index d586b81f6..ad0f50082 100644 --- a/clients/xgps.py.in +++ b/clients/xgps.py.in @@ -1687,11 +1687,11 @@ frame * { """Set up monitoring of a daemon instance.""" self.daemon = daem self.device = dev - GLib.io_add_watch(daemon.sock, GLib.PRIORITY_DEFAULT, + GLib.io_add_watch(daem.sock, GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.handle_response) - GLib.io_add_watch(daemon.sock, GLib.PRIORITY_DEFAULT, + GLib.io_add_watch(daem.sock, GLib.PRIORITY_DEFAULT, GLib.IO_ERR, self.handle_hangup) - GLib.io_add_watch(daemon.sock, GLib.PRIORITY_DEFAULT, + GLib.io_add_watch(daem.sock, GLib.PRIORITY_DEFAULT, GLib.IO_HUP, self.handle_hangup) def handle_response(self, source, condition): -- 2.43.0