Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSUrlSessionHandler: TimeoutInterval to TotalSeconds rather than Seconds #2

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

xk0gap
Copy link

@xk0gap xk0gap commented Mar 2, 2018

The setting of:

rq.TimeoutInterval = Timeout.Value.Seconds;

Should be:

rq.TimeoutInterval = Timeout.Value.TotalSeconds;

so that the TimeoutInterval is set to the TimeSpan in seconds rather than the seconds part of the Timespan which would be zero for any whole minute.

The setting of:

rq.TimeoutInterval = Timeout.Value.Seconds;

Should be:

rq.TimeoutInterval = Timeout.Value.TotalSeconds;

so that the TimeoutInterval is set to the TimeSpan in seconds rather than the seconds part of the Timespan which would be zero for any whole minute.
@mikhailswift mikhailswift merged commit e9e86cf into mikhailswift:master Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants