Skip to content

Commit a3d6cf5

Browse files
authored
Use TotalSeconds to set android timeout
1 parent 7ac47db commit a3d6cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModernHttpClient/iOS/NSUrlSessionHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
131131
};
132132

133133
if (Timeout != null)
134-
rq.TimeoutInterval = Timeout.Value.Seconds;
134+
rq.TimeoutInterval = Timeout.Value.TotalSeconds;
135135

136136
var op = session.CreateDataTask(rq);
137137

0 commit comments

Comments
 (0)