mirror of
https://github.com/deavmi/doap
synced 2024-07-04 15:50:15 +02:00
CoapClient
- `yankRequest(ubyte[] token)` now will also remove the matched `CoapRequest` from the `outgoingRequests` queue - Fixes #6
This commit is contained in:
parent
ce5418a9bd
commit
95673cf21f
|
@ -181,7 +181,9 @@ public class CoapClient
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a token this will try and find an active
|
* Given a token this will try and find an active
|
||||||
* request with a matching token and return it
|
* request with a matching token and return it.
|
||||||
|
*
|
||||||
|
* This will also remove it from the requests queue.
|
||||||
*
|
*
|
||||||
* Params:
|
* Params:
|
||||||
* token = the token
|
* token = the token
|
||||||
|
@ -200,7 +202,8 @@ public class CoapClient
|
||||||
{
|
{
|
||||||
foundRequest = request;
|
foundRequest = request;
|
||||||
|
|
||||||
// FIXME: We should remove it here?
|
outgoingRequests.linearRemoveElement(foundRequest);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user