File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
DNN Platform/Website/Install Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ private void InstallApplication()
224224 }
225225 else
226226 {
227+ bool cleanupLocker = false ;
227228 try
228229 {
229230 var synchConnectionString = new SynchConnectionStringStep ( ) ;
@@ -259,6 +260,7 @@ private void InstallApplication()
259260 return ;
260261 }
261262
263+ cleanupLocker = true ;
262264 RegisterInstallBegining ( ) ;
263265 }
264266
@@ -314,7 +316,10 @@ private void InstallApplication()
314316 }
315317 finally
316318 {
317- RegisterInstallEnd ( ) ;
319+ if ( cleanupLocker )
320+ {
321+ RegisterInstallEnd ( ) ;
322+ }
318323 }
319324 }
320325 }
@@ -352,6 +357,7 @@ private bool CheckPermissions()
352357
353358 private void UpgradeApplication ( )
354359 {
360+ bool cleanupLocker = false ;
355361 try
356362 {
357363 if ( Upgrade . Upgrade . RemoveInvalidAntiForgeryCookie ( ) )
@@ -377,6 +383,7 @@ private void UpgradeApplication()
377383 return ;
378384 }
379385
386+ cleanupLocker = true ;
380387 RegisterInstallBegining ( ) ;
381388 }
382389
@@ -498,7 +505,10 @@ private void UpgradeApplication()
498505 }
499506 finally
500507 {
501- RegisterInstallEnd ( ) ;
508+ if ( cleanupLocker )
509+ {
510+ RegisterInstallEnd ( ) ;
511+ }
502512 }
503513 }
504514
You can’t perform that action at this time.
0 commit comments