File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,8 @@ bool WasmHandleBase::canary(const std::shared_ptr<PluginBase> &plugin,
472
472
if (this ->wasm () == nullptr ) {
473
473
return false ;
474
474
}
475
- auto it = plugin_canary_cache_.find (plugin->key ());
475
+ std::string plugin_key (plugin->key ());
476
+ auto it = plugin_canary_cache_.find (plugin_key);
476
477
if (it != plugin_canary_cache_.end ()) {
477
478
return it->second ;
478
479
}
@@ -494,11 +495,11 @@ bool WasmHandleBase::canary(const std::shared_ptr<PluginBase> &plugin,
494
495
if (!configuration_canary_handle->wasm ()->configure (root_context, plugin)) {
495
496
configuration_canary_handle->wasm ()->fail (FailState::ConfigureFailed,
496
497
" Failed to configure base Wasm plugin" );
497
- plugin_canary_cache_[plugin-> key () ] = false ;
498
+ plugin_canary_cache_[plugin_key ] = false ;
498
499
return false ;
499
500
}
500
501
configuration_canary_handle->kill ();
501
- plugin_canary_cache_[plugin-> key () ] = true ;
502
+ plugin_canary_cache_[plugin_key ] = true ;
502
503
return true ;
503
504
}
504
505
You can’t perform that action at this time.
0 commit comments