Skip to content

Commit

Permalink
Merge pull request #12 from senid231/close-socket-when-clear-socket
Browse files Browse the repository at this point in the history
close socket when clearing socket if it's not closed
  • Loading branch information
senid231 authored Aug 3, 2018
2 parents e233621 + a6376d3 commit ca1ac99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/jrpc/transport/socket_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def socket
private

def clear_socket!
return if @socket.nil?
@socket.close unless @socket.closed?
@socket = nil
end

Expand Down
2 changes: 1 addition & 1 deletion lib/jrpc/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JRPC
VERSION = '1.1.2'
VERSION = '1.1.3'
end

0 comments on commit ca1ac99

Please sign in to comment.