diff options
author | Max Kellermann <max@duempel.org> | 2014-02-04 23:58:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-05 00:09:36 +0100 |
commit | d380db25be3a37666d1c908343115ed5490db968 (patch) | |
tree | b65cf15deff49441f779d4e951d11a88e584a75f /src/client | |
parent | e8938b1069739eca2bd2f27705c1c7783e834e59 (diff) | |
download | mpd-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')
-rw-r--r-- | src/client/ClientRead.cxx | 5 |
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: |