File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def each(task: Task.current)
55
55
return
56
56
end
57
57
58
- begin
58
+ task . defer_stop do
59
59
# If a response was generated, send it:
60
60
if response
61
61
trailer = response . headers . trailer!
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def read_in_background(parent: Task.current)
89
89
90
90
task . annotate ( "#{ version } reading data for #{ self . class } ." )
91
91
92
- begin
92
+ task . defer_stop do
93
93
while !self . closed?
94
94
self . consume_window
95
95
self . read_frame
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def each(task: Task.current)
53
53
54
54
@count += 1
55
55
56
- begin
56
+ task . defer_stop do
57
57
response = yield ( request )
58
58
rescue
59
59
# We need to close the stream if the user code blows up while generating a response:
You can’t perform that action at this time.
0 commit comments