Do not execute commands for a client until it has identified, fixes

problem reported by Frank Terbeck.
pull/646/head
nicm 2016-11-12 19:04:41 +00:00
parent 36f8fa316d
commit b7398a4918
1 changed files with 4 additions and 2 deletions

View File

@ -194,8 +194,10 @@ server_loop(void)
do {
items = cmdq_next(NULL);
TAILQ_FOREACH(c, &clients, entry)
items += cmdq_next(c);
TAILQ_FOREACH(c, &clients, entry) {
if (c->flags & CLIENT_IDENTIFIED)
items += cmdq_next(c);
}
} while (items != 0);
server_client_loop();