diff --git a/include/Swiften/Network/DummyConnectionServer.cpp b/include/Swiften/Network/DummyConnectionServer.cpp index bd84ca0f..8bce4f18 100644 --- a/include/Swiften/Network/DummyConnectionServer.cpp +++ b/include/Swiften/Network/DummyConnectionServer.cpp @@ -30,8 +30,7 @@ void DummyConnectionServer::stop() { void DummyConnectionServer::acceptConnection(SWIFTEN_SHRPTR_NAMESPACE::shared_ptr connection) { eventLoop->postEvent( - boost::bind(boost::ref(onNewConnection), connection), - SWIFTEN_SHRPTR_NAMESPACE::shared_ptr(this)); + boost::bind(boost::ref(onNewConnection), connection)); // connection->listen(); } diff --git a/include/Swiften/Network/DummyConnectionServer.h b/include/Swiften/Network/DummyConnectionServer.h index bbd2ef0d..7472eafc 100644 --- a/include/Swiften/Network/DummyConnectionServer.h +++ b/include/Swiften/Network/DummyConnectionServer.h @@ -19,10 +19,8 @@ #include "Swiften/SwiftenCompat.h" namespace Swift { - class DummyConnectionServer : public ConnectionServer, public EventOwner, public boost::enable_shared_from_this { + class DummyConnectionServer : public ConnectionServer { public: - typedef SWIFTEN_SHRPTR_NAMESPACE::shared_ptr ref; - enum Error { Conflict, UnknownError