avoid persisting when maybe sending deposits confirmed message

This commit is contained in:
woodser 2023-05-29 11:48:13 -04:00
parent 870630b381
commit c197ffb282
3 changed files with 26 additions and 2 deletions

View file

@ -413,6 +413,11 @@ public class PersistenceManager<T extends PersistableEnvelope> {
public void requestPersistence() {
if (flushAtShutdownCalled) {
log.warn("We have started the shut down routine already. We ignore that requestPersistence call.");
try {
throw new RuntimeException("We have started the shut down routine already. We ignore that requestPersistence call.");
} catch (Exception e) {
e.printStackTrace();
}
return;
}