aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientRead.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientRead.cxx')
-rw-r--r--src/ClientRead.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ClientRead.cxx b/src/ClientRead.cxx
index 925e1502d..22edefe60 100644
--- a/src/ClientRead.cxx
+++ b/src/ClientRead.cxx
@@ -57,6 +57,11 @@ Client::OnSocketInput(void *data, size_t length)
main_loop->Break();
return InputResult::CLOSED;
+ case CommandResult::FINISH:
+ if (Flush())
+ Close();
+ return InputResult::CLOSED;
+
case CommandResult::CLOSE:
Close();
return InputResult::CLOSED;