diff --git a/crates/extension_host/src/wasm_host.rs b/crates/extension_host/src/wasm_host.rs index 93b8a1de9b723e27a69720051ab4443277b38fcb..cd0b99cc02499bbce73cf46e1822b9cebecd2aa3 100644 --- a/crates/extension_host/src/wasm_host.rs +++ b/crates/extension_host/src/wasm_host.rs @@ -73,6 +73,12 @@ pub struct WasmExtension { _task: Arc>>, } +impl Drop for WasmExtension { + fn drop(&mut self) { + self.tx.close_channel(); + } +} + #[async_trait] impl extension::Extension for WasmExtension { fn manifest(&self) -> Arc {