mirror of
https://github.com/koush/scrypted.git
synced 2026-02-28 08:22:29 +00:00
server: checks to ensure plugin restart doesnt ignore zombie states
This commit is contained in:
@@ -652,7 +652,7 @@ export class ScryptedRuntime extends PluginHttp<HttpPluginData> {
|
||||
}
|
||||
|
||||
const existing = this.plugins[pluginHost.pluginId];
|
||||
if (existing !== pluginHost) {
|
||||
if (existing && existing !== pluginHost && !existing.killed) {
|
||||
logger.log('w', `scheduled plugin restart cancelled, plugin was restarted by user ${pluginHost.pluginId}`);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user