Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #17461 - Veykril:drop-flycheck-recv, r=Veykril
fix: Fix flycheck panicking when cancelled
Fixes https://github.com/rust-lang/rust-analyzer/issues/17445
| -rw-r--r-- | crates/flycheck/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |