Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Mar 2, 2009
1 parent 112cf8f commit 73ed4df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/org/jgroups/debug/Simulator.java
Expand Up @@ -16,7 +16,7 @@
/**
* Tests one or more protocols independently. Look at org.jgroups.tests.FCTest for an example of how to use it.
* @author Bela Ban
* @version $Id: Simulator.java,v 1.14.4.5 2009/02/26 07:54:13 belaban Exp $
* @version $Id: Simulator.java,v 1.14.4.6 2009/03/02 12:08:13 belaban Exp $
*/
public class Simulator {
private Protocol[] protStack=null;
Expand Down Expand Up @@ -146,14 +146,16 @@ public void start() throws Exception {
p.init();
}

// bottom.up(new Event(Event.SET_LOCAL_ADDRESS, local_addr));
prot_stack.down(new Event(Event.SET_LOCAL_ADDRESS, local_addr));

for(int i=0; i < protStack.length; i++) {
Protocol p=protStack[i];
p.start();
}

// moved event processing to follow stack init (JGRP-843)
// bottom.up(new Event(Event.SET_LOCAL_ADDRESS, local_addr));
prot_stack.down(new Event(Event.SET_LOCAL_ADDRESS, local_addr));

if(view != null) {
Event view_evt=new Event(Event.VIEW_CHANGE, view);
bottom.up(view_evt);
Expand Down

0 comments on commit 73ed4df

Please sign in to comment.