diff --git a/backends/libircclient-qt/CMakeLists.txt b/backends/libircclient-qt/CMakeLists.txt index eed9a3ca..0dd28668 100644 --- a/backends/libircclient-qt/CMakeLists.txt +++ b/backends/libircclient-qt/CMakeLists.txt @@ -4,7 +4,7 @@ FILE(GLOB HEADERS *.h) QT4_WRAP_CPP(SRC ${HEADERS}) ADD_EXECUTABLE(spectrum_libircclient-qt_backend ${SRC}) -target_link_libraries(spectrum_libircclient-qt_backend ${IRC_LIBRARY} ${QT_LIBRARIES} transport) +target_link_libraries(spectrum_libircclient-qt_backend ${IRC_LIBRARY} ${QT_LIBRARIES} transport pthread) INSTALL(TARGETS spectrum_libircclient-qt_backend RUNTIME DESTINATION bin) diff --git a/backends/libpurple/CMakeLists.txt b/backends/libpurple/CMakeLists.txt index bab08739..adc68ea2 100644 --- a/backends/libpurple/CMakeLists.txt +++ b/backends/libpurple/CMakeLists.txt @@ -3,7 +3,7 @@ FILE(GLOB SRC *.cpp) ADD_EXECUTABLE(spectrum_libpurple_backend ${SRC}) -target_link_libraries(spectrum_libpurple_backend ${PURPLE_LIBRARY} ${GLIB2_LIBRARIES} ${EVENT_LIBRARIES} transport) +target_link_libraries(spectrum_libpurple_backend ${PURPLE_LIBRARY} ${GLIB2_LIBRARIES} ${EVENT_LIBRARIES} transport pthread) INSTALL(TARGETS spectrum_libpurple_backend RUNTIME DESTINATION bin) diff --git a/spectrum/src/sample.cfg b/spectrum/src/sample.cfg index 0717a607..159f0d77 100644 --- a/spectrum/src/sample.cfg +++ b/spectrum/src/sample.cfg @@ -10,7 +10,7 @@ admin_username=admin admin_password=test #cert= #patch to PKCS#12 certificate #cert_password= #password to that certificate if any -users_per_backend=1 +users_per_backend=10 backend=../../backends/libpurple/spectrum_libpurple_backend #backend=../../backends/libircclient-qt/spectrum_libircclient-qt_backend #protocol=prpl-jabber diff --git a/src/networkpluginserver.cpp b/src/networkpluginserver.cpp index eed7ab05..7686aa88 100644 --- a/src/networkpluginserver.cpp +++ b/src/networkpluginserver.cpp @@ -228,8 +228,8 @@ void NetworkPluginServer::handleSessionFinished(Backend *c) { (*it)->handleDisconnected("Internal Server Error, please reconnect."); } - c->connection->onDisconnected.disconnect(boost::bind(&NetworkPluginServer::handleSessionFinished, this, c)); - c->connection->onDataRead.disconnect(boost::bind(&NetworkPluginServer::handleDataRead, this, c, _1)); + c->connection->onDisconnected.disconnect_all_slots(); + c->connection->onDataRead.disconnect_all_slots(); m_clients.remove(c); delete c;