Skip to content

Commit

Permalink
server: probe one off discovered devices after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 28, 2023
1 parent 1200537 commit 212883e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/plugin/plugin-host-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export class PluginHostAPI extends PluginAPIManagedListeners implements PluginAP
}

async onDeviceDiscovered(device: Device) {
return this.pluginHost.upsertDevice(device);
const id = await this.pluginHost.upsertDevice(device);
this.scrypted.getDevice(id)?.probe().catch(() => { });
return id;
}

async onDeviceRemoved(nativeId: string) {
Expand Down

0 comments on commit 212883e

Please sign in to comment.