mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Fixing stupid mistake that prevented async operations from working
This commit is contained in:
parent
172505470a
commit
45623b3f99
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue