Skip to content

Commit

Permalink
Merge pull request #58 from nullorvoid/fix/timeouterror
Browse files Browse the repository at this point in the history
Logging timeout to server
  • Loading branch information
AlmirKadric authored Dec 16, 2016
2 parents 1081b73 + ff26cce commit e641979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HTTPRequest/HTTPRequest.DotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public HttpRequest(string url, string contentType, byte[] postData, Dictionary<s
// Start timeout timer
timeoutTimer = new Timer((object state) => {
this.Abort();
cb(new Exception("Request timed out"), null);
cb(new HttpRequestException("Request timed out", 0), null);
}, null, timeout, Timeout.Infinite);

// Initialize request instance
Expand Down
2 changes: 1 addition & 1 deletion HTTPRequest/HTTPRequest.Unity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private IEnumerator WaitLoop()
{
// Timed out abort the request with timeout error
Abort();
cb(new Exception("Request timed out"), null);
cb(new HttpRequestException("Request timed out", 0), null);
yield break;
}

Expand Down

0 comments on commit e641979

Please sign in to comment.