Fixing stupid mistake that prevented async operations from working

This commit is contained in:
Chris Cameron
2017-08-17 13:21:48 -04:00
parent 172505470a
commit 45623b3f99

View File

@@ -32,9 +32,9 @@ namespace ICD.Common.Utils
public static object SafeInvoke<T>(Action<T> callback, T param)
{
#if SIMPLSHARP
return CrestronInvoke.BeginInvoke(unused => GetHandledCallback(callback, param), null);
return CrestronInvoke.BeginInvoke(unused => GetHandledCallback(callback, param)(), null);
#else
return Task.Run(() => GetHandledCallback(callback, param));
return Task.Run(GetHandledCallback(callback, param));
#endif
}