Skip to content

Commit 24f3b4a

Browse files
Do not use sdk client.
1 parent 1b12060 commit 24f3b4a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sdk/Notifo.SDK/NotifoMobilePush/TrackSeenCommand.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System;
99
using System.Collections.Generic;
1010
using System.Linq;
11+
using System.Net.Http;
1112
using System.Threading;
1213
using System.Threading.Tasks;
1314
using Notifo.SDK.CommandQueue;
@@ -67,8 +68,7 @@ private async Task TrackWithUrlsAsync(
6768
return;
6869
}
6970

70-
var httpClient = NotifoIO.Current.Client.CreateHttpClient();
71-
try
71+
using (var httpClient = new HttpClient())
7272
{
7373
foreach (var url in urls)
7474
{
@@ -77,10 +77,6 @@ private async Task TrackWithUrlsAsync(
7777
response.EnsureSuccessStatusCode();
7878
}
7979
}
80-
finally
81-
{
82-
NotifoIO.Current.Client.ReturnHttpClient(httpClient);
83-
}
8480
}
8581

8682
private async Task TrackWithIdsAsync(

0 commit comments

Comments
 (0)