mirror of
https://github.com/matrix-construct/construct
synced 2024-12-23 22:13:55 +01:00
ircd:Ⓜ️:init::backfill: Add interruption checks for clean breaks.
This commit is contained in:
parent
c7b0e9a1b5
commit
3e4918062d
1 changed files with 4 additions and 3 deletions
|
@ -122,7 +122,7 @@ try
|
|||
|
||||
handle_room(room_id);
|
||||
++count;
|
||||
return true;
|
||||
return !ctx::interruption_requested();
|
||||
});
|
||||
|
||||
log::info
|
||||
|
@ -242,12 +242,13 @@ try
|
|||
}
|
||||
|
||||
++evaluated;
|
||||
return true;
|
||||
return !ctx::interruption_requested();
|
||||
});
|
||||
|
||||
return true;
|
||||
return !ctx::interruption_requested();
|
||||
});
|
||||
|
||||
ctx::interruption_point();
|
||||
log::info
|
||||
{
|
||||
log, "acquired %s remote head; servers:%zu online:%zu"
|
||||
|
|
Loading…
Reference in a new issue