From 51208548c4a1d9b403e091331a0d3cd826bbc816 Mon Sep 17 00:00:00 2001
From: m-guberina <gubi.guberina@gmail.com>
Date: Thu, 6 Feb 2025 11:00:54 +0100
Subject: [PATCH] forgot to add same fix to client_sender, now it's there

---
 python/ur_simple_control/networking/client.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/ur_simple_control/networking/client.py b/python/ur_simple_control/networking/client.py
index a51ccea..1c25cf5 100644
--- a/python/ur_simple_control/networking/client.py
+++ b/python/ur_simple_control/networking/client.py
@@ -133,6 +133,11 @@ def client_sender(args, init_command, queue):
             break
         except ConnectionRefusedError:
             time.sleep(0.005)
+        except KeyboardInterrupt:
+            s.close()
+            if args.debug_prints:
+                print("NETWORKING_CLIENT: caught KeyboardInterrupt, i'm out")
+            return
     if args.debug_prints:
         print("NETWORKING CLIENT_SENDER: connected to server")
 
-- 
GitLab