Skip to content

Commit

Permalink
Fix sideload crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 7, 2023
1 parent 3f3a8b9 commit f38d440
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/debugSession/BrightScriptDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,14 @@ export class BrightScriptDebugSession extends BaseDebugSession {
let packageIsPublished = false;

//delete any currently installed dev channel (if enabled to do so)
if (this.launchConfiguration.deleteDevChannelBeforeInstall === true) {
await this.rokuDeploy.deleteInstalledChannel({
...this.launchConfiguration
} as any as RokuDeployOptions);
try {
if (this.launchConfiguration.deleteDevChannelBeforeInstall === true) {
await this.rokuDeploy.deleteInstalledChannel({
...this.launchConfiguration
} as any as RokuDeployOptions);
}
} catch (e) {
this.logger.warn('Failed to delete the dev channel...probably not a big deal', e);
}

//publish the package to the target Roku
Expand Down

0 comments on commit f38d440

Please sign in to comment.