mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::ctx: Minor cleanup.
This commit is contained in:
parent
9a08305bc4
commit
83cbfea75d
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ ircd::ctx::dock::wait_for(const duration &dur,
|
||||||
|
|
||||||
q.push_back(current); do
|
q.push_back(current); do
|
||||||
{
|
{
|
||||||
const bool expired(ircd::ctx::wait<std::nothrow_t>(dur) <= zero);
|
const bool expired
|
||||||
|
{
|
||||||
|
ircd::ctx::wait<std::nothrow_t>(dur) <= zero
|
||||||
|
};
|
||||||
|
|
||||||
if(pred())
|
if(pred())
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue