Skip to content

Commit e310145

Browse files
sichanyooSichan Yoo
andauthored
fix: Silenced network error in CRTClientEngine's onStreamComplete callback (#930)
Co-authored-by: Sichan Yoo <[email protected]>
1 parent aa4cb45 commit e310145

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ClientRuntime/Networking/Http/CRT/CRTClientEngine.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ public class CRTClientEngine: HTTPClient {
571571
case .failure(let error):
572572
self.logger.error("Response encountered an error: \(error)")
573573
stream.closeWithError(error)
574+
continuation.resume(throwing: error)
574575
}
575576
}
576577

0 commit comments

Comments
 (0)