fix device index floating
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user