Commit 116874c 1 parent aeff8d2 commit 116874c Copy full SHA for 116874c
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ export class AppState {
207
207
versions : this . baseVersions ,
208
208
} ) ;
209
209
210
- // Lock on the active Electron version that prevents other windows from removing it
211
- private versionLock : Lock | null = null ;
210
+ // Do we have a lock on the active Electron version that prevents other windows from removing it?
211
+ private hasActiveLock = false ;
212
212
213
213
// Used to release the lock when the current window switches Electron versions
214
214
private versionLockController = new AbortController ( ) ;
@@ -881,7 +881,7 @@ export class AppState {
881
881
return ;
882
882
}
883
883
884
- if ( this . versionLock ) {
884
+ if ( this . hasActiveLock ) {
885
885
console . log ( `Releasing lock on version ${ this . version } ` ) ;
886
886
887
887
// release the lock on the previous version
@@ -899,7 +899,7 @@ export class AppState {
899
899
this . getVersionLockName ( version ) ,
900
900
{ mode : 'shared' } ,
901
901
( lock ) => {
902
- this . versionLock = lock ;
902
+ this . hasActiveLock = Boolean ( lock ) ;
903
903
904
904
/**
905
905
* The lock is released when this promise resolves, so we keep it in the
You can’t perform that action at this time.
0 commit comments