Fix possible infinite loop if addon disposes terminal

This commit is contained in:
Daniel Imms
2019-05-12 10:47:35 -07:00
parent 1502fea431
commit f90239377b
+1 -1
View File
@@ -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);
}
}