Skip to content

Commit

Permalink
adaptation: mark closed WASM plugins as such.
Browse files Browse the repository at this point in the history
Don't try to make further calls to closed WASM plugins. Mark
them as closed in close(), so they get properly removed from
the list of plugins.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
  • Loading branch information
klihub committed Feb 3, 2025
1 parent f7fe658 commit e97d7ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/adaptation/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ func (p *plugin) start(name, version string) (err error) {
// close a plugin shutting down its multiplexed ttrpc connections.
func (p *plugin) close() {
if p.impl.isWasm() {
p.closed = true
return
}

Expand Down

0 comments on commit e97d7ed

Please sign in to comment.