mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
ircd::resource::method: Fix condition wait without context.
This commit is contained in:
parent
10554d51b5
commit
f9dffbfcbc
1 changed files with 5 additions and 0 deletions
|
@ -456,6 +456,11 @@ noexcept
|
|||
uint64_t(stats->pending),
|
||||
};
|
||||
|
||||
// No point in waiting without a context...
|
||||
if(unlikely(!ctx::current))
|
||||
return;
|
||||
|
||||
// Wait until the method has completed requests in progress.
|
||||
const ctx::uninterruptible::nothrow ui;
|
||||
idle_dock.wait([this]() noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue