Skip to content

Commit

Permalink
opti: 不清空进度条窗口以在终端保留信息
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed May 26, 2024
1 parent 5afa71a commit e9f49f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CSharp-OpenBMCLAPI/Modules/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public async Task KeepAlive()
await socket.EmitAsync("keep-alive",
(SocketIOResponse resp) =>
{
_KeepAliveMessageParser(resp);
_keepAliveMessageParser(resp);
//Utils.PrintResponseMessage(resp);
//Logger.Instance.LogSystem($"保活成功 at {time},served {Utils.GetLength(this.counter.bytes)}({this.counter.bytes} bytes)/{this.counter.hits} hits");
this.counter.Reset();
Expand All @@ -390,9 +390,10 @@ await socket.EmitAsync("keep-alive",
}
}

private void _KeepAliveMessageParser(SocketIOResponse resp)
private void _keepAliveMessageParser(SocketIOResponse resp)
{
Debugger.Break();
//Dictionary<string, string>? message = resp.
}

/// <summary>
Expand Down Expand Up @@ -483,9 +484,6 @@ protected async Task CheckFiles(bool skipCheck, FileVerificationMode mode)
}
});

downloadProgress.Clear();
downloadMessage.Clear();

source.Cancel();

files = null!;
Expand Down

0 comments on commit e9f49f8

Please sign in to comment.