Skip to content

Commit

Permalink
Merge pull request #21 from christian-photo/2.1.6.0
Browse files Browse the repository at this point in the history
2.1.6.0
  • Loading branch information
christian-photo authored Feb 2, 2025
2 parents 9475c57 + cfd98dc commit d29c774
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ninaAPI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
10 changes: 9 additions & 1 deletion ninaAPI/WebService/V2/WebSocketV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d29c774

Please sign in to comment.