Commit b9e4f3cd authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Use last received value when clearing queue in RosQueuedSubscribe

parent d2629ffc
......@@ -87,6 +87,7 @@ namespace dynamicgraph
void clear ()
{
qmutex.lock();
if (!queue.empty()) last = queue.back();
queue = Queue_t();
qmutex.unlock();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment