To solve this problem, I think that we should review the source code
more carefully.

I don't know exactly.
But IMO in the "unbind" method we have the "request.wait()" here.
What will happened if the "notify" thread is happened before the
"wait"
thread? The "unbind" method will be never returned?

--BEGIN--
        synchronized( request )
        {
            while( !request.done )
            {
                try
                {
                    request.wait();
                }
                catch( InterruptedException e )
                {
                    ExceptionMonitor.getInstance().exceptionCaught( e
);
                }
            }
        }
--END--

This should be fixed in the 1.2 branch, as it now uses a CountDownLatch to indicate completion.
-pete


--
[EMAIL PROTECTED] - http://fotap.org/~osi



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to