diff --git a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoSparkCodec.cs b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoSparkCodec.cs index 42e7bbd7..e5400ac4 100644 --- a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoSparkCodec.cs +++ b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoSparkCodec.cs @@ -709,7 +709,7 @@ ConnectorID: {2}" // Fire the ready event SetIsReady(); - _registrationCheckTimer = new CTimer(SendText, "xFeedback list", 360000, 360000); + _registrationCheckTimer = new CTimer(EnqueueCommand, "xFeedback list", 90000, 90000); } public void SetCommDebug(string s) @@ -799,7 +799,6 @@ ConnectorID: {2}" if (args.Text.StartsWith("/")) { - Debug.Console(0, this, "Feedback List Data Received : {0}", args.Text); _feedbackListMessageIncoming = true; if(_feedbackListMessage == null) _feedbackListMessage = new StringBuilder(); } @@ -887,8 +886,8 @@ ConnectorID: {2}" Debug.Console(0, this, "Codec Feedback Registrations Lost - Registering Feedbacks"); ErrorLog.Error(String.Format("[{0}] :: Codec Feedback Registrations Lost - Registering Feedbacks", Key)); //var updateRegistrationString = "xFeedback deregisterall" + Delimiter + _cliFeedbackRegistrationExpression; - - //SendText(updateRegistrationString); + + EnqueueCommand(_cliFeedbackRegistrationExpression); } /// @@ -899,6 +898,12 @@ ConnectorID: {2}" { _syncState.AddCommandToQueue(command); } + private void EnqueueCommand(object cmd) + { + var command = cmd as string; + if (String.IsNullOrEmpty(command)) return; + _syncState.AddCommandToQueue(command); + } /// /// Appends the delimiter and send the command to the codec.