lib/patronus_fati/connection.rb in patronus_fati-0.9.5 vs lib/patronus_fati/connection.rb in patronus_fati-0.9.6

- old
+ new

@@ -79,10 +79,10 @@ end rescue => e $stderr.puts format('Error in write thread: %s %s', e.class.to_s, e.message) $stderr.puts e.backtrace ensure - socket.close if socket + socket.close if socket && !socket.closed? end end end end end