File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ def reader(task)
5353
5454 @head . close_write
5555 rescue => error
56- raise
5756 ensure
5857 @input . close ( error )
5958
@@ -71,7 +70,6 @@ def writer(task)
7170 @output . write ( chunk )
7271 end
7372 rescue => error
74- raise
7573 ensure
7674 @output . close_write ( error )
7775
Original file line number Diff line number Diff line change 143143 end
144144 ensure
145145 Console . debug ( self ) { "Finished reading from upstream..." }
146- stream . close_write
146+ stream . close_write unless stream . closed?
147147 end
148148
149149 writer = Async do |task |
155155 end
156156 ensure
157157 Console . debug ( self ) { "Finished writing to upstream..." }
158- upstream . close_write
158+ upstream . close_write unless upstream . closed?
159159 end
160160
161161 reader . wait
You can’t perform that action at this time.
0 commit comments