Changeset - ce44c83ae8f5
[Not reviewed]
0 4 0
HanzZ - 14 years ago 2011-07-24 21:41:52
hanzz.k@gmail.com
disconnect_all_slots in networkpluginserver
4 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
backends/libircclient-qt/CMakeLists.txt
Show inline comments
 
@@ -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)
 
backends/libpurple/CMakeLists.txt
Show inline comments
 
@@ -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)
 
spectrum/src/sample.cfg
Show inline comments
 
@@ -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
src/networkpluginserver.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)