Skip to content

Commit 831860c

Browse files
authored
Merge pull request #45 from diegofrata/dev
Fix deadlock when calling Dispose from the UI thread.
2 parents 7ccc3a5 + c81a9b0 commit 831860c

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)