Skip to content

Commit b1bb46c

Browse files
Handling of NSURLErrorNetworkConnectionLost error (#1218)
Enable the handling of NSURLErrorNetworkConnectionLost network error Resolves: OLPEDGE-2566 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent 1687505 commit b1bb46c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

olp-cpp-sdk-core/src/http/ios/OLPNetworkIOS.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
return ErrorCode::OFFLINE_ERROR;
100100
case NSURLErrorTimedOut:
101101
return ErrorCode::TIMEOUT_ERROR;
102+
case NSURLErrorNetworkConnectionLost:
103+
return ErrorCode::IO_ERROR;
102104
default:
103105
if (error_code >= NSURLErrorClientCertificateRequired &&
104106
error_code <= NSURLErrorSecureConnectionFailed) {

0 commit comments

Comments
 (0)