mirror of
https://github.com/deavmi/doap
synced 2024-07-04 16:10:15 +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
|
* 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
|
||||||
|
@ -199,6 +201,7 @@ public class CoapClient
|
||||||
if(request.getToken() == token)
|
if(request.getToken() == token)
|
||||||
{
|
{
|
||||||
foundRequest = request;
|
foundRequest = request;
|
||||||
|
outgoingRequests.linearRemoveElement(foundRequest);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user