summaryrefslogtreecommitdiffstats
path: root/src/mad.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-27 03:54:43 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-27 03:54:43 +0200
commitc9a0accf145e403496ad84729a10735ef79f55de (patch)
tree5bbfe8f419e8d41a9995c2adb51d8945ddbe272f /src/mad.cpp
parent59bec05e406a0cf55c52d13cecfe76dccf83cd19 (diff)
downloadmad-c9a0accf145e403496ad84729a10735ef79f55de.tar
mad-c9a0accf145e403496ad84729a10735ef79f55de.zip
mad, madc: Verbindungen schon vor dem Verbinden registrieren
Diffstat (limited to 'src/mad.cpp')
-rw-r--r--src/mad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mad.cpp b/src/mad.cpp
index 137328a..81061ca 100644
--- a/src/mad.cpp
+++ b/src/mad.cpp
@@ -47,13 +47,13 @@ int main() {
Common::ClientConnection *connection = new Common::ClientConnection(&application);
try {
+ application.getRequestManager()->registerConnection(connection);
+
connection->connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string("127.0.0.1"), 6666));
connection->waitWhileConnecting();
- application.getRequestManager()->registerConnection(connection);
-
boost::shared_ptr<Core::Logger> networkLogger(new Daemon::Backends::NetworkLogger(&application, connection));
application.getLogManager()->registerLogger(networkLogger);