diff --git a/ninaAPI/Properties/AssemblyInfo.cs b/ninaAPI/Properties/AssemblyInfo.cs index 8d0b7cc..eb1ca42 100644 --- a/ninaAPI/Properties/AssemblyInfo.cs +++ b/ninaAPI/Properties/AssemblyInfo.cs @@ -6,8 +6,8 @@ // [MANDATORY] The assembly versioning //Should be incremented for each new build of a plugin -[assembly: AssemblyVersion("2.1.6.0")] // last one is for beta -[assembly: AssemblyFileVersion("2.1.6.0")] +[assembly: AssemblyVersion("2.1.6.1")] // last one is for beta +[assembly: AssemblyFileVersion("2.1.6.1")] // [MANDATORY] The name of your plugin [assembly: AssemblyTitle("Advanced API")] diff --git a/ninaAPI/WebService/V2/WebSocketV2.cs b/ninaAPI/WebService/V2/WebSocketV2.cs index 6a2070d..8287b2c 100644 --- a/ninaAPI/WebService/V2/WebSocketV2.cs +++ b/ninaAPI/WebService/V2/WebSocketV2.cs @@ -141,7 +141,15 @@ protected override Task OnClientConnectedAsync(IWebSocketContext context) public static async Task SendEvent(HttpResponse payload) { - await instance?.Send(payload); + try + { + if (instance is not null) + await instance?.Send(payload); + } + catch (Exception ex) + { + Logger.Error($"WebSocket SendEvent failed: {ex.Message}"); + } } public async Task Send(HttpResponse payload)