Close sample client instantly on ctrl+c
This commit is contained in:
parent
ba7bfc6c07
commit
1f46adca46
|
@ -78,6 +78,7 @@ end
|
|||
|
||||
Signal.trap('INT') do
|
||||
client.disconnect
|
||||
exit
|
||||
end
|
||||
|
||||
# connect and detach thread
|
||||
|
|
Loading…
Reference in a new issue