From f2c2cd423da9f7d9ac71a32ca4360f213607ea4d Mon Sep 17 00:00:00 2001 From: Joshua Gutenplan Date: Fri, 14 Jun 2019 15:23:05 -0700 Subject: [PATCH] Remove the crestron invoke from the eisc change event. Not good as it could spool a lot of threads --- PepperDashEssentials/Bridges/BridgeFactory.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PepperDashEssentials/Bridges/BridgeFactory.cs b/PepperDashEssentials/Bridges/BridgeFactory.cs index 6adeeafc..38cd117e 100644 --- a/PepperDashEssentials/Bridges/BridgeFactory.cs +++ b/PepperDashEssentials/Bridges/BridgeFactory.cs @@ -129,11 +129,11 @@ namespace PepperDash.Essentials Debug.Console(1, "BridgeApiEisc change: {0} {1}={2}", args.Sig.Type, args.Sig.Number, args.Sig.StringValue); var uo = args.Sig.UserObject; if (uo is Action) - CrestronInvoke.BeginInvoke(o => (uo as Action)((o as SigEventArgs).Sig.BoolValue), args); + (uo as Action)(args.Sig.BoolValue); else if (uo is Action) - CrestronInvoke.BeginInvoke(o => (uo as Action)((o as SigEventArgs).Sig.UShortValue), args); + (uo as Action)(args.Sig.UShortValue); else if (uo is Action) - CrestronInvoke.BeginInvoke(o => (uo as Action)((o as SigEventArgs).Sig.StringValue), args); + (uo as Action)(args.Sig.StringValue); } } }