From e3b0fb9534d783d62245be8d7777f35d34e6d59d Mon Sep 17 00:00:00 2001 From: jestin Date: Thu, 23 Aug 2012 19:39:32 +0000 Subject: --- tests/AsyncAPI.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/AsyncAPI.java') diff --git a/tests/AsyncAPI.java b/tests/AsyncAPI.java index e174929..1f07565 100644 --- a/tests/AsyncAPI.java +++ b/tests/AsyncAPI.java @@ -43,8 +43,7 @@ class AsyncAPI { public AsyncAPI(int nb,String domain,int d, boolean v,boolean async) throws IvyException { verbose=v; nbpacket=nb; - name = "MSreceive"; - bus = new Ivy(name,null, null); + bus = new Ivy(RECEIVENAME,null, null); wait = d; delay=new DelayAnswer(); if (async) re = bus.bindAsyncMsg(TOSUBSCRIBE,delay,BindType.ASYNC); @@ -59,7 +58,7 @@ class AsyncAPI { static Object truc = new Object(); - int count=0,total=0; + volatile int count=0,total=0; int status = 0; synchronized void huh(IvyClient ic, String[] args) { @@ -95,7 +94,7 @@ class AsyncAPI { Thread.sleep(wait); System.out.println("RECEIVE Finished Sleeping"); } catch (InterruptedException ie) { - ie.printStackTrace(); + System.out.println("RECEIVE Sleeping interrupted, not a problem"); } } } -- cgit v1.1