Skip to content

Commit c81a9b0

Browse files
author
Diego Frata
committed
Fix deadlock when calling Dispose from the UI thread.
1 parent 7ccc3a5 commit c81a9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Sinks.Splunk/Sinks/Splunk/EventCollectorSink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private async Task Send(IEnumerable<LogEvent> events)
205205
}
206206

207207
var request = new EventCollectorRequest(_splunkHost, allEvents.ToString(), _uriPath);
208-
var response = await _httpClient.SendAsync(request);
208+
var response = await _httpClient.SendAsync(request).ConfigureAwait(false);
209209

210210
if (response.IsSuccessStatusCode)
211211
{

0 commit comments

Comments
 (0)