diff --git a/Sources/PerfectCURL/CURLResponse.swift b/Sources/PerfectCURL/CURLResponse.swift index c167673..ebb15f9 100644 --- a/Sources/PerfectCURL/CURLResponse.swift +++ b/Sources/PerfectCURL/CURLResponse.swift @@ -200,7 +200,9 @@ extension CURLResponse { } if notDone { curl.ioWait { - self.innerComplete(callback) + Threading.dispatch { + self.innerComplete(callback) + } } } else { postFields = nil