Merge tag 'v0.23.17'
release v0.23.17
This commit is contained in:
@@ -36,6 +36,13 @@ Client::ProcessCommandList(bool list_ok,
|
||||
return CommandResult::OK;
|
||||
}
|
||||
|
||||
[[gnu::pure]]
|
||||
static bool
|
||||
IsAsyncCommmand(const char *line) noexcept
|
||||
{
|
||||
return StringIsEqual(line, "idle") || StringIsEqual(line, "noidle");
|
||||
}
|
||||
|
||||
CommandResult
|
||||
Client::ProcessLine(char *line) noexcept
|
||||
{
|
||||
@@ -51,6 +58,13 @@ Client::ProcessLine(char *line) noexcept
|
||||
return CommandResult::CLOSE;
|
||||
}
|
||||
|
||||
if (cmd_list.IsActive() && IsAsyncCommmand(line)) {
|
||||
FmtWarning(client_domain,
|
||||
"[{}] not possible in comand list: \"{}\"",
|
||||
num, line);
|
||||
return CommandResult::CLOSE;
|
||||
}
|
||||
|
||||
if (StringIsEqual(line, "noidle")) {
|
||||
if (idle_waiting) {
|
||||
/* send empty idle response and leave idle mode */
|
||||
|
||||
Reference in New Issue
Block a user