@@ -151,23 +151,23 @@ public void gracefulShutDown(ResultHandler resultHandler) {
151
151
UserThread .runAfter (() -> System .exit (HavenoExecutable .EXIT_SUCCESS ), 1 );
152
152
});
153
153
});
154
-
155
- // shut down trade and wallet services
156
- log .info ("Shutting down trade and wallet services" );
157
- injector .getInstance (OfferBookService .class ).shutDown ();
158
- injector .getInstance (TradeManager .class ).shutDown ();
159
- injector .getInstance (BtcWalletService .class ).shutDown ();
160
- injector .getInstance (XmrWalletService .class ).shutDown ();
161
- injector .getInstance (XmrConnectionService .class ).shutDown ();
162
- injector .getInstance (WalletsSetup .class ).shutDown ();
163
154
});
155
+
156
+ // shut down trade and wallet services
157
+ log .info ("Shutting down trade and wallet services" );
158
+ injector .getInstance (OfferBookService .class ).shutDown ();
159
+ injector .getInstance (TradeManager .class ).shutDown ();
160
+ injector .getInstance (BtcWalletService .class ).shutDown ();
161
+ injector .getInstance (XmrWalletService .class ).shutDown ();
162
+ injector .getInstance (XmrConnectionService .class ).shutDown ();
163
+ injector .getInstance (WalletsSetup .class ).shutDown ();
164
164
});
165
165
166
166
// we wait max 5 sec.
167
167
UserThread .runAfter (() -> {
168
168
PersistenceManager .flushAllDataToDiskAtShutdown (() -> {
169
169
resultHandler .handleResult ();
170
- log .info ("Graceful shutdown caused a timeout. Exiting now." );
170
+ log .warn ("Graceful shutdown caused a timeout. Exiting now." );
171
171
UserThread .runAfter (() -> System .exit (HavenoExecutable .EXIT_SUCCESS ), 1 );
172
172
});
173
173
}, 5 );
0 commit comments