Skip to content

Commit

Permalink
Two missing selfs got past soundness. (#489)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Fett <[email protected]>
  • Loading branch information
Lukasa and fabianfett authored Nov 22, 2021
1 parent b479afe commit 8713f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AsyncHTTPClient/RequestBag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ final class RequestBag<Delegate: HTTPClientResponseDelegate> {

case .succeedRequest:
do {
let response = try self.delegate.didFinishRequest(task: task)
let response = try self.delegate.didFinishRequest(task: self.task)
self.task.promise.succeed(response)
} catch {
self.task.promise.fail(error)
Expand Down Expand Up @@ -282,7 +282,7 @@ final class RequestBag<Delegate: HTTPClientResponseDelegate> {
break
case .finishStream:
do {
let response = try self.delegate.didFinishRequest(task: task)
let response = try self.delegate.didFinishRequest(task: self.task)
self.task.promise.succeed(response)
} catch {
self.task.promise.fail(error)
Expand Down

0 comments on commit 8713f95

Please sign in to comment.