fix device index floating

This commit is contained in:
michalcourson
2026-03-28 07:11:31 -04:00
parent d3d5270889
commit 1106c82eab
6 changed files with 239 additions and 18 deletions

View File

@@ -265,6 +265,7 @@ namespace ClipTrimDotNet.Client
public async void SaveClip()
{
if (socket is null) return;
CheckPort();
await socket.EmitAsync("record_clip", new List<object>() { });
}
@@ -272,7 +273,7 @@ namespace ClipTrimDotNet.Client
{
if (socket is null) return;
//Logger.Instance.LogMessage(TracingLevel.INFO, $"Checking port {socket}");
if (currentHostname != HostName)
if (currentHostname != HostName || !socket.Connected)
{
//Logger.Instance.LogMessage(TracingLevel.INFO, $"port {socket}");
if (socket.Connected)