From 45623b3f99c90b77e12af409f81a1fb92e53c7d2 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 17 Aug 2017 13:21:48 -0400 Subject: [PATCH] Fixing stupid mistake that prevented async operations from working --- ICD.Common.Utils/ThreadingUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICD.Common.Utils/ThreadingUtils.cs b/ICD.Common.Utils/ThreadingUtils.cs index d5d1f22..f19848c 100644 --- a/ICD.Common.Utils/ThreadingUtils.cs +++ b/ICD.Common.Utils/ThreadingUtils.cs @@ -32,9 +32,9 @@ namespace ICD.Common.Utils public static object SafeInvoke(Action 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 }