From 32f8d15f867ab9a9f0cc8d47dc823f0fdcb6023a Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Tue, 13 Jul 2021 19:11:48 +0800 Subject: [PATCH] Fix PcapController.Stop() UI access exception --- Netch/Controllers/PcapController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Controllers/PcapController.cs b/Netch/Controllers/PcapController.cs index 154922e5..ef1a27b0 100644 --- a/Netch/Controllers/PcapController.cs +++ b/Netch/Controllers/PcapController.cs @@ -48,7 +48,7 @@ namespace Netch.Controllers public override void Stop() { - _form.Close(); + Global.MainForm.Invoke(new Action(() => { _form.Close(); })); StopGuard(); }