mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +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)
|
||||
{
|
||||
#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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user