Skip to content

Commit

Permalink
Close sample client instantly on ctrl+c
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jun 19, 2024
1 parent ba7bfc6 commit 1f46adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client_sample.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def show_help

Signal.trap('INT') do
client.disconnect
exit
end

# connect and detach thread
Expand Down

0 comments on commit 1f46adc

Please sign in to comment.