slight tweak to attachRequest()
This commit is contained in:
parent
69d9b49ce3
commit
ac52a14efc
1 changed files with 3 additions and 2 deletions
|
@ -556,10 +556,11 @@ public class RequestEvaluator implements Runnable {
|
|||
* wait for it to complete. Otherwise return null, so the application knows it has to run the request.
|
||||
*/
|
||||
public synchronized ResponseTrans attachRequest (RequestTrans req) throws InterruptedException {
|
||||
if (this.req == null || !this.req.equals (req) || reqtype == NONE)
|
||||
if (this.req == null || res == null || !this.req.equals (req))
|
||||
return null;
|
||||
// we already know our response object
|
||||
ResponseTrans r = res;
|
||||
if (reqtype != NONE)
|
||||
wait (app.requestTimeout);
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue