aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/ClientRead.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 23:58:03 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 00:09:36 +0100
commitd380db25be3a37666d1c908343115ed5490db968 (patch)
treeb65cf15deff49441f779d4e951d11a88e584a75f /src/client/ClientRead.cxx
parente8938b1069739eca2bd2f27705c1c7783e834e59 (diff)
downloadmpd-d380db25be3a37666d1c908343115ed5490db968.tar.gz
mpd-d380db25be3a37666d1c908343115ed5490db968.tar.xz
mpd-d380db25be3a37666d1c908343115ed5490db968.zip
Instance: add attribute "event_loop"
Replaces global variable "main_loop".
Diffstat (limited to 'src/client/ClientRead.cxx')
-rw-r--r--src/client/ClientRead.cxx5
1 files changed, 3 insertions, 2 deletions
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: