Skip to content

Commit

Permalink
Fix possible infinite loop if addon disposes terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed May 12, 2019
1 parent 1502fea commit f902393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/AddonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class AddonManager implements IDisposable {
if (index === -1) {
throw new Error('Could not dispose an addon that has not been loaded');
}
loadedAddon.dispose();
loadedAddon.isDisposed = true;
loadedAddon.dispose();
this._addons.splice(index, 1);
}
}

0 comments on commit f902393

Please sign in to comment.