Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Fix execption on TCP socket when connection is lost.
Browse files Browse the repository at this point in the history
Bump to version 1.9.0.
  • Loading branch information
christiankakesa committed Jan 11, 2016
1 parent b45c7d0 commit 09ec679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/netsoul-ruby
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ begin
end
end
rescue Interrupt
c.disconnect if c.started
begin c.disconnect; end
puts '!!! [SIGINT] !!!'
exit 42
rescue => e
puts "[ERROR]: #{e}#{$INPUT_RECORD_SEPARATOR}[RETRY_COUNT]: #{retry_count}"
c.disconnect
c = nil
puts "[ERROR]: #{e}"
puts "[RETRY_COUNT]: #{retry_count}"
begin c.disconnect; end
if retry_count > 0
retry_count -= 1
retry_wait_time *= RETRY_WAIT_FACTOR
Expand Down
2 changes: 1 addition & 1 deletion lib/netsoul/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Netsoul
VERSION = '1.8.0'.freeze
VERSION = '1.9.0'.freeze
end

0 comments on commit 09ec679

Please sign in to comment.