From e6389ff5a169a9653f3a2dfa6d0f789f21a4a453 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Jul 2016 13:52:33 +0200 Subject: client/ClientRead: call Break() before Close() Referencing the attribute "partition" is illegal after Close(), because Close() deletes "this". --- src/client/ClientRead.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') 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: -- cgit v1.2.3