mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd:Ⓜ️:init::backfill: Break from worker loop on runlevel change.
This commit is contained in:
parent
1323b30f34
commit
4e5d67dfe9
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ try
|
|||
rooms::for_each(opts, [&count]
|
||||
(const room::id &room_id)
|
||||
{
|
||||
if(unlikely(run::level != run::level::RUN))
|
||||
return false;
|
||||
|
||||
handle_room(room_id);
|
||||
++count;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue