about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-06-20 10:21:58 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-06-20 10:21:58 +0200
commit2f4e555407e54c57ea277a87609434304fc4c520 (patch)
treea7f3938b2c6c9ebd9a8eb77eb5da6ee26ae9bc87
parent74c1675664a0c86b0342d8ed6e9e6f06e29e8213 (diff)
downloadrust-2f4e555407e54c57ea277a87609434304fc4c520.tar.gz
rust-2f4e555407e54c57ea277a87609434304fc4c520.zip
fix: Fix flycheck panicking when cancelled
-rw-r--r--src/tools/rust-analyzer/crates/flycheck/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/flycheck/src/lib.rs b/src/tools/rust-analyzer/crates/flycheck/src/lib.rs
index 36be5143475..4584400e66f 100644
--- a/src/tools/rust-analyzer/crates/flycheck/src/lib.rs
+++ b/src/tools/rust-analyzer/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;
         }