From e66e7e5511599e7720d25bea7da807f882a417c1 Mon Sep 17 00:00:00 2001 From: Albert Cardona Date: Mon, 13 Apr 2009 10:14:31 +0200 Subject: [PATCH] Fixed problem with logger and status threads on closing/reopening a ControlWindow. For some reason, the threads weren't recreated. --- ini/trakem2/utils/Utils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ini/trakem2/utils/Utils.java b/ini/trakem2/utils/Utils.java index 99410c57..869ccd9f 100644 --- a/ini/trakem2/utils/Utils.java +++ b/ini/trakem2/utils/Utils.java @@ -241,8 +241,10 @@ public class Utils implements ij.plugin.PlugIn { /** Initialize house keeping threads. */ static public final void setup(final ControlWindow master) { // the ControlWindow acts as a switch: nobody can controls this because the CW constructor is private - if (null == status) status = new StatusDispatcher(); - if (null == logger) logger = new LogDispatcher(); + if (null != status) status.quit(); + status = new StatusDispatcher(); + if (null != logger) logger.quit(); + logger = new LogDispatcher(); } /** Destroy house keeping threads. */ -- 2.11.4.GIT