]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1914] Implemented the cancelAsyncRecv method
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 17 May 2012 18:51:00 +0000 (20:51 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 17 May 2012 18:51:00 +0000 (20:51 +0200)
Isn't it a little bit waste, to have 35 lines of tests for 1-line
wrapper function? O:-)

src/lib/config/ccsession.cc

index cfb7e4b8e722803c95987825297a5c751d7e748b..d968e143c3106a6fb65676156a3538d2afdc2950 100644 (file)
@@ -854,5 +854,10 @@ ModuleCCSession::requestMatch(const AsyncRecvRequest& request,
     return (false);
 }
 
+void
+ModuleCCSession::cancelAsyncRecv(const AsyncRecvRequestID& id) {
+    async_recv_requests_.erase(id);
+}
+
 }
 }