Skip to content

Commit

Permalink
Add timeout for deviceinfo query so we don't wait too long
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 13, 2023
1 parent bd8c4fd commit 48f795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debugSession/BrightScriptDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class BrightScriptDebugSession extends BaseDebugSession {

// fetches the device info and parses the xml data to JSON object
try {
this.deviceInfo = await rokuDeploy.getDeviceInfo({ host: this.launchConfiguration.host, remotePort: this.launchConfiguration.remotePort, enhance: true });
this.deviceInfo = await rokuDeploy.getDeviceInfo({ host: this.launchConfiguration.host, remotePort: this.launchConfiguration.remotePort, enhance: true, timeout: 5_000 });
} catch (e) {
return this.shutdown(`Unable to connect to roku at '${this.launchConfiguration.host}'. Verify the IP address is correct and that the device is powered on and connected to same network as this computer.`);
}
Expand Down

0 comments on commit 48f795b

Please sign in to comment.