Permalink
Browse files

Shutdown daemon threads at the end of dbtest

  • Loading branch information...
luccioman committed Jan 29, 2018
1 parent 929e0d6 commit 28883d8a712ff3b997eb549c385c89f5f3428093
Showing with 7 additions and 1 deletion.
  1. +7 −1 source/net/yacy/dbtest.java
@@ -289,9 +289,10 @@ public static void main(final String[] args) {
// start test
final long startup = System.currentTimeMillis();
memprofiler profiler = null;
try {
// create a memory profiler
final memprofiler profiler = new memprofiler(1024, 320, 120, new File(tablename_test + ".profile.png"));
profiler = new memprofiler(1024, 320, 120, new File(tablename_test + ".profile.png"));
profiler.start();
// create the database access
@@ -432,6 +433,11 @@ public static void main(final String[] args) {
profiler.terminate();
} catch (final Exception e) {
ConcurrentLog.logException(e);
} finally {
if(profiler != null) {
profiler.terminate();
}
ConcurrentLog.shutdown();
}
}
}

0 comments on commit 28883d8

Please sign in to comment.