fix: Fix flycheck panicking when cancelled

This commit is contained in:
Lukas Wirth 2024-06-20 10:21:58 +02:00
parent 74c1675664
commit 2f4e555407

View File

@ -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;
}