diff --git a/source/doap/client/client.d b/source/doap/client/client.d index 41b80de..9659980 100644 --- a/source/doap/client/client.d +++ b/source/doap/client/client.d @@ -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; } }