diff options
author | Max Kellermann <max@duempel.org> | 2016-07-07 13:52:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-07-07 13:54:04 +0200 |
commit | e6389ff5a169a9653f3a2dfa6d0f789f21a4a453 (patch) | |
tree | 414146a634d1436697ce95674deef1e4384b8d8f /src/client | |
parent | b46cf57d983e559ebd29c4f0749914f3714d8b75 (diff) |
client/ClientRead: call Break() before Close()
Referencing the attribute "partition" is illegal after Close(),
because Close() deletes "this".
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ClientRead.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/ClientRead.cxx b/src/client/ClientRead.cxx index 9cfb1271f..232da8d62 100644 --- a/src/client/ClientRead.cxx +++ b/src/client/ClientRead.cxx @@ -52,8 +52,8 @@ Client::OnSocketInput(void *data, size_t length) break; case CommandResult::KILL: - Close(); partition.instance.event_loop->Break(); + Close(); return InputResult::CLOSED; case CommandResult::FINISH: |