Permalink
Browse files

update documentation

  • Loading branch information...
1 parent f63cee4 commit 6a866beb10dd9a38ab1161180ede08ad90fb41e9 @copiousfreetime committed Nov 28, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/kjess/connection.rb
View
3 lib/kjess/connection.rb
@@ -30,6 +30,9 @@ def initialize( host, port = 22133 )
# Returns the raw socket. If the socket is not connected it will connect and
# then return it.
#
+ # Make sure that we close the socket if we are not the same process that
+ # opened that socket to begin with.
+ #
# Returns a TCPSocket
def socket
close if @pid && @pid != Process.pid

0 comments on commit 6a866be

Please sign in to comment.