From 1f46adca4655846d614cbc68c9cb2f2963fec458 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Wed, 19 Jun 2024 08:46:02 +0800 Subject: [PATCH] Close sample client instantly on ctrl+c --- client_sample.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/client_sample.rb b/client_sample.rb index e37da88..51e440b 100755 --- a/client_sample.rb +++ b/client_sample.rb @@ -78,6 +78,7 @@ end Signal.trap('INT') do client.disconnect + exit end # connect and detach thread