From 6bfcae453fca18d4c56c8af5c40ebc1d5a0c14da Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Tue, 26 Jan 2021 21:36:23 +0800 Subject: [PATCH] Fix #498 , again --- Netch/Forms/MainForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index 4746be47..98e2c37c 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -1178,7 +1178,13 @@ namespace Netch.Forms public void BandwidthState(bool state) { if (InvokeRequired) + { BeginInvoke(new Action(BandwidthState), state); + return; + } + + if (IsWaiting()) + return; UsedBandwidthLabel.Visible /*= UploadSpeedLabel.Visible*/ = DownloadSpeedLabel.Visible = state; }