mirror of
https://github.com/koush/scrypted.git
synced 2026-03-01 08:42:57 +00:00
server: console fixes
This commit is contained in:
@@ -539,12 +539,15 @@ export class ScryptedRuntime {
|
||||
}
|
||||
this.stateManager.removeDevice(device._id);
|
||||
|
||||
const plugin = this.plugins[device.pluginId];
|
||||
// remove the plugin too
|
||||
if (!device.nativeId) {
|
||||
const plugin = this.plugins[device.pluginId];
|
||||
plugin?.kill();
|
||||
await this.datastore.removeId(Plugin, device.pluginId);
|
||||
}
|
||||
else {
|
||||
await plugin.remote.setNativeId(device.nativeId, undefined, undefined);
|
||||
}
|
||||
}
|
||||
|
||||
upsertDevice(pluginId: string, device: Device, invalidate?: boolean): Promise<PluginDevice> {
|
||||
|
||||
Reference in New Issue
Block a user