Stop preboot plugins only once on stop() (#171170)

## Summary

When running `setup()` followed by `stop()`, the preboot plugins can ATM
be stopped multiple times.
This commit is contained in:
Gerard Soldevila 2023-11-16 14:44:58 +01:00 committed by GitHub
parent db5176b17a
commit 82d05036ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,7 +201,7 @@ export class PluginsService
this.log.debug('Stopping plugins service');
if (!this.arePrebootPluginsStopped) {
this.arePrebootPluginsStopped = false;
this.arePrebootPluginsStopped = true;
await this.prebootPluginsSystem.stopPlugins();
}