Commit 0ed5955b authored by Dominik Charousset's avatar Dominik Charousset

Avoid unnecessary state changes

parent 857454ae
......@@ -65,7 +65,8 @@ std::unique_ptr<endpoint_manager::message> endpoint_manager::next_message() {
return nullptr;
q.inc_deficit(ts);
auto result = q.next();
messages_.try_block();
if (q.empty())
messages_.try_block();
return result;
}
......
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