diff --git a/python/ur_simple_control/networking/client.py b/python/ur_simple_control/networking/client.py index a51ccea34d172ff4a48e70651353e9aa91e4eb94..1c25cf54e927487b85123365a8bc0b1db2531ab2 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")