Changeset - 25f5516757ed
[Not reviewed]
0 3 0
HanzZ - 14 years ago 2011-07-17 04:26:55
hanzz.k@gmail.com
Fixed double delete on legacy network error
3 files changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
include/transport/usermanager.h
Show inline comments
 
@@ -77,6 +77,10 @@ class UserManager {
 
			return m_users.find(barejid) != m_users.end();
 
		}
 

	
 
		UserRegistry *getUserRegistry() {
 
			return m_userRegistry;
 
		}
 

	
 
		void connectUser(const Swift::JID &user);
 

	
 
	private:
spectrum/src/sample.cfg
Show inline comments
 
@@ -13,8 +13,8 @@ admin_password=test
 
users_per_backend=2
 
backend=../../backends/libpurple/spectrum_libpurple_backend
 
#backend=../../backends/libircclient-qt/spectrum_libircclient-qt_backend
 
protocol=prpl-jabber
 
#protocol=prpl-msn
 
#protocol=prpl-jabber
 
protocol=prpl-msn
 
#protocol=prpl-icq
 

	
 
[logging]
src/user.cpp
Show inline comments
 
@@ -191,7 +191,9 @@ void User::handleDisconnected(const std::string &error) {
 
	// Once in finishSession and once in m_userManager->removeUser.
 
	if (m_component->inServerMode()) {
 
		dynamic_cast<Swift::ServerStanzaChannel *>(m_component->getStanzaChannel())->finishSession(m_jid, boost::shared_ptr<Swift::Element>(new Swift::StreamError()));
 
		m_userManager->removeUser(this);
 
		if (!m_readyForConnect) {
 
			m_userManager->removeUser(this);
 
		}
 
	}
 
	else {
 
		m_userManager->removeUser(this);
0 comments (0 inline, 0 general)