Skip to content

Commit

Permalink
Attempt to fix the issue of database connection closure during file r…
Browse files Browse the repository at this point in the history
…ollback
  • Loading branch information
Gu-ZT committed Oct 30, 2024
1 parent 9f0d721 commit be68961
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void initQuickBackupMulti(CallbackInfo ci) {

@Inject(method = "shutdown", at = @At("HEAD"))
private void injectShutDown(CallbackInfo ci) {
if (!Config.TEMP_CONFIG.isBackup) shutdownSchedule();
getDataBase().stopInternalMongoServer();
shutdownSchedule();
if (!Config.TEMP_CONFIG.isBackup) getDataBase().stopInternalMongoServer();
}
}

0 comments on commit be68961

Please sign in to comment.