Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 779e705

Browse files
authored
Merge pull request #168 from North-Two-Five/issue#167-Events-not-sent-to-Segment-servers-Failed-to-send-analytic-event
Issue#167 events not sent to segment servers failed to send analytic event
2 parents 2b31e0b + 70492eb commit 779e705

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Analytics/Request/BlockingRequestHandler.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ internal BlockingRequestHandler(Client client, TimeSpan timeout, HttpClient http
152152
public async Task MakeRequest(Batch batch)
153153
{
154154
Stopwatch watch = new Stopwatch();
155-
155+
_backo.Reset();
156156
try
157157
{
158158
Uri uri = new Uri(_client.Config.Host + "/v1/import");
@@ -346,10 +346,6 @@ public async Task MakeRequest(Batch batch)
346346
{
347347
var message = $"Has Backoff reached max: {hasBackoReachedMax} with number of Attempts:{_backo.CurrentAttempt},\n Status Code: {statusCode}\n, response message: {responseStr}";
348348
Fail(batch, new APIException(statusCode.ToString(), message), watch.ElapsedMilliseconds);
349-
if (_backo.HasReachedMax)
350-
{
351-
_backo.Reset();
352-
}
353349
}
354350
}
355351
catch (System.Exception e)

0 commit comments

Comments
 (0)