Shutdown daemon threads at the end of dbtest

pull/167/head
luccioman 7 years ago
parent 929e0d6eae
commit 28883d8a71

@ -289,9 +289,10 @@ public class dbtest {
// start test // start test
final long startup = System.currentTimeMillis(); final long startup = System.currentTimeMillis();
memprofiler profiler = null;
try { try {
// create a memory profiler // 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(); profiler.start();
// create the database access // create the database access
@ -432,6 +433,11 @@ public class dbtest {
profiler.terminate(); profiler.terminate();
} catch (final Exception e) { } catch (final Exception e) {
ConcurrentLog.logException(e); ConcurrentLog.logException(e);
} finally {
if(profiler != null) {
profiler.terminate();
}
ConcurrentLog.shutdown();
} }
} }
} }

Loading…
Cancel
Save