mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Fixing stupid mistake that prevented async operations from working
This commit is contained in:
@@ -32,9 +32,9 @@ namespace ICD.Common.Utils
|
|||||||
public static object SafeInvoke<T>(Action<T> callback, T param)
|
public static object SafeInvoke<T>(Action<T> callback, T param)
|
||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
return CrestronInvoke.BeginInvoke(unused => GetHandledCallback(callback, param), null);
|
return CrestronInvoke.BeginInvoke(unused => GetHandledCallback(callback, param)(), null);
|
||||||
#else
|
#else
|
||||||
return Task.Run(() => GetHandledCallback(callback, param));
|
return Task.Run(GetHandledCallback(callback, param));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user