0
0
Fork 0
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:
Jason Volk 2022-08-09 17:24:45 -07:00
parent 10554d51b5
commit f9dffbfcbc

View file

@ -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
{