client/Process: reset the CommandListBuilder before processing it

Allows removing a CommandResult::CLOSE check.
This commit is contained in:
Max Kellermann
2019-04-03 22:38:26 +02:00
parent 7d1db5c19f
commit c1272c72b0
2 changed files with 5 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ public:
/**
* Finishes the list and returns it.
*/
std::list<std::string> &&Commit() {
std::list<std::string> Commit() {
assert(IsActive());
return std::move(list);