From 7ad524cb80541d39c3e56e55ff22b40b4ed41c2a Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 3 Oct 2008 09:37:01 +0000 Subject: [PATCH] removed redundant error message --- tools/cooja/java/se/sics/cooja/Simulation.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/Simulation.java b/tools/cooja/java/se/sics/cooja/Simulation.java index 1c7cebbc6..b13ebe95d 100644 --- a/tools/cooja/java/se/sics/cooja/Simulation.java +++ b/tools/cooja/java/se/sics/cooja/Simulation.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: Simulation.java,v 1.24 2008/09/29 23:04:27 fros4943 Exp $ + * $Id: Simulation.java,v 1.25 2008/10/03 09:37:01 fros4943 Exp $ */ package se.sics.cooja; @@ -207,16 +207,14 @@ public class Simulation extends Observable implements Runnable { } if (stopSimulation) { - // We should only tick once (and we just did), so abort now - stopSimulation = false; isRunning = false; - thread = null; } - } } catch (InterruptedException e) { - logger.warn("InterruptedException:" + e); + if (isRunning) { + logger.warn("InterruptedException:" + e); + } } catch (IllegalArgumentException e) { logger.warn("llegalArgumentException:" + e); } catch (IllegalMonitorStateException e) {