Do not start server add-ons for archived devices
Reviewed By: mweststrate Differential Revision: D36371703 fbshipit-source-id: 16083ed9f0dbee67963ace2284138ee108f696b2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b8dda9b0a7
commit
49dbe12d5f
@@ -97,7 +97,10 @@ export class SandyDevicePluginInstance extends BasePluginInstance {
|
||||
this.initializePlugin(() =>
|
||||
definition.asDevicePluginModule().devicePlugin(this.client),
|
||||
);
|
||||
this.startServerAddOn();
|
||||
// Do not start server add-ons for archived devices
|
||||
if (this.device.connected.get()) {
|
||||
this.startServerAddOn();
|
||||
}
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
||||
Reference in New Issue
Block a user