aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/command')
-rw-r--r--src/command/CommandResult.hxx6
-rw-r--r--src/command/OtherCommands.cxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/command/CommandResult.hxx b/src/command/CommandResult.hxx
index bbc16146b..9916b70cb 100644
--- a/src/command/CommandResult.hxx
+++ b/src/command/CommandResult.hxx
@@ -48,6 +48,12 @@ enum class CommandResult {
ERROR,
/**
+ * The client has asked MPD to close the connection. MPD will
+ * flush the remaining output buffer first.
+ */
+ FINISH,
+
+ /**
* The connection to this client shall be closed.
*/
CLOSE,
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx
index 75faa4dc2..7b2cb1331 100644
--- a/src/command/OtherCommands.cxx
+++ b/src/command/OtherCommands.cxx
@@ -99,7 +99,7 @@ CommandResult
handle_close(gcc_unused Client &client,
gcc_unused int argc, gcc_unused char *argv[])
{
- return CommandResult::CLOSE;
+ return CommandResult::FINISH;
}
CommandResult