diff --git a/OptimizelySDK/Event/Dispatcher/HttpClientEventDispatcher45.cs b/OptimizelySDK/Event/Dispatcher/HttpClientEventDispatcher45.cs
index 4498e7aa..d4f5f53a 100644
--- a/OptimizelySDK/Event/Dispatcher/HttpClientEventDispatcher45.cs
+++ b/OptimizelySDK/Event/Dispatcher/HttpClientEventDispatcher45.cs
@@ -41,7 +41,7 @@ static HttpClientEventDispatcher45()
///
/// Dispatch an Event asynchronously
///
- private async void DispatchEventAsync(LogEvent logEvent)
+ private async Task DispatchEventAsync(LogEvent logEvent)
{
try
{
@@ -68,13 +68,11 @@ private async void DispatchEventAsync(LogEvent logEvent)
}
///
- /// Dispatch an event Asynchronously by creating a new task and calls the
- /// Async version of DispatchEvent
- /// This is a "Fire and Forget" option
+ /// Dispatch an event
///
public void DispatchEvent(LogEvent logEvent)
{
- Task.Run(() => DispatchEventAsync(logEvent));
+ Task.Run(() => DispatchEventAsync(logEvent)).Wait();
}
}
}