Author: heiko.braun(a)jboss.com
Date: 2008-07-11 15:39:08 -0400 (Fri, 11 Jul 2008)
New Revision: 139
Modified:
sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java
Log:
while(!terminate())
Modified: sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java
===================================================================
--- sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java 2008-07-11
19:14:42 UTC (rev 138)
+++ sam/trunk/src/main/java/org/jboss/sam/simulation/EventSourceEntity.java 2008-07-11
19:39:08 UTC (rev 139)
@@ -60,8 +60,7 @@
private double eventRatio;
private InVMDispatcher dispatcher = null;
private SimulationContext context = null;
- private EventMessageFactory factory = null;
- private boolean keepRunning = true;
+ private EventMessageFactory factory = null;
/**
*
@@ -101,7 +100,7 @@
public void run()
{
- while (keepRunning)
+ while (!terminated())
{
try
{
@@ -154,9 +153,7 @@
public void end()
{
- this.resumeProcess();
this.terminate();
- keepRunning = false;
}
Show replies by date