Skip to content

Commit

Permalink
If the responsecode has already arrived, don't wait.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1423129 13f79535-47bb-0310-9956-ffa450edef68
dkulp committed Dec 17, 2012
1 parent 4eaf0b6 commit 6862768
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -528,10 +528,14 @@ protected void checkClientException(Message outMessage, Exception ex) throws Exc

protected void waitForResponseCode(Exchange exchange) {
synchronized (exchange) {
try {
exchange.wait(cfg.getSynchronousTimeout());
} catch (InterruptedException ex) {
// ignore
if (getResponseCode(exchange) == null) {
try {
exchange.wait(cfg.getSynchronousTimeout());
} catch (InterruptedException ex) {
// ignore
}
} else {
return;
}
}

0 comments on commit 6862768

Please sign in to comment.