lib/em-systemcommand/pipe.rb in em-systemcommand-2.0.8 vs lib/em-systemcommand/pipe.rb in em-systemcommand-2.0.9
- old
+ new
@@ -197,13 +197,13 @@
##
# Close the attached IO object.
def close
begin
@io.close unless @io.closed?
+ close_connection
rescue Exception => e
- # ignore errors, when the io object might be closed already
- ensure
- detach
+ # ignore errors for instance when the connection has already
+ # been closed.
end
end
##
# Invoked when the connection is terminated. Calls