Re: proton-j messenger stopped function

2014-04-25 Thread Rafael Schloming
Hi Marcel,

I believe this is a bug. I would go ahead and file a JIRA against it.

--Rafael


On Thu, Apr 24, 2014 at 4:09 PM, Marcel Meulemans 
m.meulem...@tkhinnovations.com wrote:

 When calling messenger.stopped() directly after messenger.start() it
 returns true ... until you do some messaging. This was not what I would
 expect. Looking at the code the stopped function reads:

 public boolean stopped()
 {
 return _allClosed.test();
 }

 I was wondering if this should not be something like:

 public boolean stopped()
 {
 return _drvier == null || _allClosed.test();
 }

 Or is it just my expectation that is wrong?

 --
 Marcel



proton-j messenger stopped function

2014-04-24 Thread Marcel Meulemans
When calling messenger.stopped() directly after messenger.start() it
returns true ... until you do some messaging. This was not what I would
expect. Looking at the code the stopped function reads:

public boolean stopped()
{
return _allClosed.test();
}

I was wondering if this should not be something like:

public boolean stopped()
{
return _drvier == null || _allClosed.test();
}

Or is it just my expectation that is wrong?

-- 
Marcel