Merge in fix for Glassfish-21175

It might be late but don't you need a break after the wait with timeout so that if it does timeout you break out of the while loop otherwise ‎aren't you back to an infinite wait?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   From: davewintersSent: Friday, 17 October 2014 22:01To: payara/PayaraReply To: payara/PayaraCc: Steve MillidgeSubject: Re: [Payara] Merge in fix for Glassfish-21175 (#24)In appserver/transaction/jts/src/main/java/com/sun/jts/CosTransactions/EventSemaphore.java:
> +     * <p>
> +     * If the event has already been posted, then the operation returns immediately.
> +     *
> +     * @param cmtTimeout - container managed transaction timeout
> +     *
> +     * @return
> +     *
> +     * @exception InterruptedException  The wait was interrupted.
> +     *
> +     * @see
> +     */
> +    
> +    synchronized public void waitTimeoutEvent(int cmtTimeout) 
> +    	throws InterruptedException {
> +            if( !posted ){
> +                wait(cmtTimeout);

Yeap the change is quite simple..will make change to this pull request.

—Reply to this email directly or view it on GitHub.
{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/payara/Payara/pull/24/files#r19043178","name":"View Pull Request"}}