0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd:Ⓜ️:init::backfill: Add interruption checks for clean breaks.

This commit is contained in:
Jason Volk 2019-09-06 14:50:54 -07:00
parent c7b0e9a1b5
commit 3e4918062d

View file

@ -122,7 +122,7 @@ try
handle_room(room_id); handle_room(room_id);
++count; ++count;
return true; return !ctx::interruption_requested();
}); });
log::info log::info
@ -242,12 +242,13 @@ try
} }
++evaluated; ++evaluated;
return true; return !ctx::interruption_requested();
}); });
return true; return !ctx::interruption_requested();
}); });
ctx::interruption_point();
log::info log::info
{ {
log, "acquired %s remote head; servers:%zu online:%zu" log, "acquired %s remote head; servers:%zu online:%zu"