Skip to content

Commit

Permalink
Queue the recursive call to innerComplete()
Browse files Browse the repository at this point in the history
I believe this fixes [Issue PerfectlySoft#14](PerfectlySoft#14), but please take a look.
  • Loading branch information
mfreed7 authored Nov 19, 2019
1 parent 37c0f69 commit 6e0094b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/PerfectCURL/CURLResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ extension CURLResponse {
}
if notDone {
curl.ioWait {
self.innerComplete(callback)
Threading.dispatch {
self.innerComplete(callback)
}
}
} else {
postFields = nil
Expand Down

0 comments on commit 6e0094b

Please sign in to comment.