Skip to content

Commit 786d9d9

Browse files
committed
Fix incorrect self -> task.
1 parent 4607e9d commit 786d9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/async/http/server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def accept(peer, address, task: Task.current)
6767

6868
# @returns [Array(Async::Task)] The task that is running the server.
6969
def run
70-
Async do
70+
Async do |task|
7171
@endpoint.accept(&self.method(:accept))
7272

7373
# Wait for all children to finish:
74-
self.children.each(&:wait)
74+
task.children.each(&:wait)
7575
end
7676
end
7777

0 commit comments

Comments
 (0)