lib/em-systemcommand/pipe.rb in em-systemcommand-1.0.1 vs lib/em-systemcommand/pipe.rb in em-systemcommand-1.0.2
- old
+ new
@@ -114,9 +114,10 @@
# Close the attached IO object.
def close
begin
@io.close unless @io.closed?
+ detach
rescue Exception => e
# ignore errors, when the io object might be closed already
end
end