Hiram R. Chirino 2006-07-20 05:45:32 +00:00
parent 2fc3e8ee7f
commit 98a6f181ca
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ public class WireFormatNegotiator extends TransportFilter {
} }
} }
public void stop() throws Exception {
super.stop();
readyCountDownLatch.countDown();
}
public void oneway(Command command) throws IOException { public void oneway(Command command) throws IOException {
try { try {
if( !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS) ) if( !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS) )