mirror of
https://github.com/deavmi/doap
synced 2024-07-02 13:07:19 +02:00
Merge pull request #6 from deavmi/bugfix/yanked_free
Remove request when matched by messaging layer
This commit is contained in:
commit
f2f1f8fece
|
@ -181,7 +181,9 @@ public class CoapClient
|
|||
|
||||
/**
|
||||
* 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:
|
||||
* token = the token
|
||||
|
@ -199,6 +201,7 @@ public class CoapClient
|
|||
if(request.getToken() == token)
|
||||
{
|
||||
foundRequest = request;
|
||||
outgoingRequests.linearRemoveElement(foundRequest);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user