nitpicker: load initial config before announcement

This patch fixes a potential race condition that could happen if a
client connects to nitpicker before the signal for the import of the
initial configuration was delivered. In this case, nitpicker would be
unable to assign a domain to the session (because this information comes
from the configuration), rendering subsequent calls to 'mode' invalid.
The patch solves this problem by manually calling the signal handler
for importing the configuration.
This commit is contained in:
Norman Feske 2014-08-18 14:18:24 +02:00
parent 2f7167fab2
commit 3b71998054
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ struct Nitpicker::Main
user_state.stack(background);
config()->sigh(config_dispatcher);
Signal_transmitter(config_dispatcher).submit();
handle_config(0);
timer.sigh(input_dispatcher);
timer.trigger_periodic(10*1000);