File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Flagsmith.FlagsmithClient Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public async Task Flush()
7171 _CustomHeaders ? . ForEach ( kvp => request . Headers . Add ( kvp . Key , kvp . Value ) ) ;
7272 var tokenSource = new CancellationTokenSource ( ) ;
7373 tokenSource . CancelAfter ( TimeSpan . FromSeconds ( _TimeOut ) ) ;
74- var response = await _HttpClient . SendAsync ( request , tokenSource . Token ) ;
74+ var response = await _HttpClient . SendAsync ( request , tokenSource . Token ) . ConfigureAwait ( false ) ;
7575 response . EnsureSuccessStatusCode ( ) ;
7676 _Logger ? . LogInformation ( "Analytics posted: " + analyticsJson ) ;
7777 AnalyticsDataThreads . Clear ( ) ;
@@ -116,7 +116,7 @@ public async Task TrackFeature(string featureName)
116116 int _LastFlushedInterval = ( DateTime . Now - _LastFlushed ) . Seconds ;
117117
118118 if ( _LastFlushedInterval > _FlushIntervalSeconds )
119- await Flush ( ) ;
119+ await Flush ( ) . ConfigureAwait ( false ) ;
120120 }
121121
122122 /// <summary>
You can’t perform that action at this time.
0 commit comments