mirror of
https://github.com/deavmi/doap
synced 2024-07-04 15:50:15 +02:00
CoapRequestFuture
- Ensure that we set the request's state to `RequestState.COMPLETED` when `get(Duration)` completes successfully
This commit is contained in:
parent
deaebdaaed
commit
e64cf824e6
|
@ -431,6 +431,7 @@ public class CoapRequestFuture
|
||||||
// Await a response
|
// Await a response
|
||||||
if(this.condition.wait(timeout))
|
if(this.condition.wait(timeout))
|
||||||
{
|
{
|
||||||
|
this.state = RequestState.COMPLETED;
|
||||||
return this.response;
|
return this.response;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user