Merge pull request #6 from deavmi/bugfix/yanked_free

Remove request when matched by messaging layer
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 17:23:48 +02:00 committed by GitHub
commit f2f1f8fece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}