core: mark updates pending when a root flag is set

To make sure handle_root_flags will be called.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-03-31 04:55:50 +01:00 committed by yshui
parent b109526e15
commit 5a22fb0828
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ session_t *ps_g = NULL;
void set_root_flags(session_t *ps, uint64_t flags) { void set_root_flags(session_t *ps, uint64_t flags) {
ps->root_flags |= flags; ps->root_flags |= flags;
ps->pending_updates = true;
} }
void quit(session_t *ps) { void quit(session_t *ps) {