mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
fix(essentials): removes logic to disconnect and reinitialize on malformed json response
This commit is contained in:
parent
bfdc882eb6
commit
b0288951eb
1 changed files with 5 additions and 5 deletions
|
|
@ -1182,17 +1182,17 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Debug.Console(1, this, "Error Deserializing feedback from codec: {0}", ex);
|
||||||
|
|
||||||
if (ex is Newtonsoft.Json.JsonReaderException)
|
if (ex is Newtonsoft.Json.JsonReaderException)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, "Received malformed response from codec. Unable to serialize. Disconnecting and attmpting to recconnect");
|
Debug.Console(1, this, "Received malformed response from codec. Unable to deserialize. Disconnecting and attmpting to recconnect");
|
||||||
|
|
||||||
Communication.Disconnect();
|
//Communication.Disconnect();
|
||||||
|
|
||||||
Initialize();
|
//Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Debug.Console(1, this, "Error Deserializing feedback from codec: {0}", ex);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue