Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/wasmtime/src/runtime/component/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ impl ComponentStoreData {

#[cfg(feature = "component-model-async")]
pub(crate) fn drop_fibers_and_futures(store: &mut dyn VMStore) {
// Skip cleanup if concurrency support is not enabled.
// This prevents panics when the component-model-async feature is compiled in
// but the store was created without concurrency support (concurrent_state is None).
if !store.concurrency_support() {
return;
}

let mut fibers = Vec::new();
let mut futures = Vec::new();
store
Expand Down