0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

construct::console: Improve interrupt mask toggling for sleep.

This commit is contained in:
Jason Volk 2021-04-22 12:19:25 -07:00
parent 5011e20c2e
commit da5fa1217a

View file

@ -442,7 +442,8 @@ construct::console::cmd__watch()
handle_line(); try
{
const log::console_quiet quiet(false);
const ircd::ctx::uninterruptible ri(false);
ctx::interruptible(ctx::cur(), true);
ctx::interruption_point();
ctx::sleep(sleep_time);
}
catch(const ctx::interrupted &)