summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-07-07 13:52:33 +0200
committerMax Kellermann <max@duempel.org>2016-07-07 13:54:04 +0200
commite6389ff5a169a9653f3a2dfa6d0f789f21a4a453 (patch)
tree414146a634d1436697ce95674deef1e4384b8d8f /src/client
parentb46cf57d983e559ebd29c4f0749914f3714d8b75 (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.cxx2
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: