Do not start server add-ons for archived devices

Reviewed By: mweststrate

Differential Revision: D36371703

fbshipit-source-id: 16083ed9f0dbee67963ace2284138ee108f696b2
This commit is contained in:
Andrey Goncharov
2022-05-13 03:25:55 -07:00
committed by Facebook GitHub Bot
parent b8dda9b0a7
commit 49dbe12d5f

View File

@@ -97,7 +97,10 @@ export class SandyDevicePluginInstance extends BasePluginInstance {
this.initializePlugin(() => this.initializePlugin(() =>
definition.asDevicePluginModule().devicePlugin(this.client), definition.asDevicePluginModule().devicePlugin(this.client),
); );
this.startServerAddOn(); // Do not start server add-ons for archived devices
if (this.device.connected.get()) {
this.startServerAddOn();
}
} }
toJSON() { toJSON() {