From d380db25be3a37666d1c908343115ed5490db968 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 23:58:03 +0100 Subject: Instance: add attribute "event_loop" Replaces global variable "main_loop". --- src/client/ClientRead.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/ClientRead.cxx b/src/client/ClientRead.cxx index 19deebd52..1ec6d29d5 100644 --- a/src/client/ClientRead.cxx +++ b/src/client/ClientRead.cxx @@ -19,7 +19,8 @@ #include "config.h" #include "ClientInternal.hxx" -#include "Main.hxx" +#include "Partition.hxx" +#include "Instance.hxx" #include "event/Loop.hxx" #include "util/CharUtil.hxx" @@ -53,7 +54,7 @@ Client::OnSocketInput(void *data, size_t length) case CommandResult::KILL: Close(); - main_loop->Break(); + partition.instance.event_loop->Break(); return InputResult::CLOSED; case CommandResult::FINISH: -- cgit v1.2.3