0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-22 16:38:54 +02:00

construct: Make interruption during cmd in watch.

This commit is contained in:
Jason Volk 2019-09-11 18:29:24 -07:00
parent 2110f7e632
commit 34898aaea0

View file

@ -399,8 +399,10 @@ construct::console::cmd__watch()
this->line = line; do this->line = line; do
{ {
std::cout << '\n'; std::cout << '\n';
const ircd::ctx::uninterruptible ui;
handle_line(); try handle_line(); try
{ {
ircd::ctx::interruptible(true);
const log::console_quiet quiet(false); const log::console_quiet quiet(false);
ctx::sleep(sleep_time); ctx::sleep(sleep_time);
} }