From 48cf13b5980e757b10e321755e50ad537adc1b90 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 20 Jun 2024 10:21:58 +0200 Subject: [PATCH] fix: Fix flycheck panicking when cancelled --- crates/flycheck/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs index 36be514347..4584400e66 100644 --- a/crates/flycheck/src/lib.rs +++ b/crates/flycheck/src/lib.rs @@ -386,6 +386,7 @@ impl FlycheckActor { "did cancel flycheck" ); command_handle.cancel(); + self.command_receiver.take(); self.report_progress(Progress::DidCancel); self.status = FlycheckStatus::Finished; }