fix logging of UI server auto-stop, fix indentation in test

Signed-off-by: Tamás Fenyvesi <tamas.fenyvesi@doknet.hu>
master
Tamás Fenyvesi 2020-04-23 13:56:32 +02:00
parent 88ef784b7c
commit ef7c21c204
2 changed files with 3 additions and 2 deletions

View File

@ -194,8 +194,9 @@ public class VertxUIServer extends AbstractVerticle implements UIServer {
VertxUIServer.autoStopThread = new Thread(() -> {
try {
currentThread.join();
log.info("Deeplearning4j UI server is auto-stopping.");
if (VertxUIServer.instance != null && !VertxUIServer.instance.isStopped()) {
log.info("Deeplearning4j UI server is auto-stopping after thread (name: {}) died.",
currentThread.getName());
instance.stop();
}
} catch (InterruptedException e) {