soc.2009.transport: 82a8d386: Prevent User::connect to be called twice
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Tue Jun 23 12:25:40 EDT 2009
-----------------------------------------------------------------
Revision: 82a8d3865bdac47237f4b7bc24513be164f3db8d
Ancestor: 0a635a8038b05bd7f6a5a36850a387a572ea501b
Author: hanzz at soc.pidgin.im
Date: 2009-06-23T16:21:35
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/82a8d3865bdac47237f4b7bc24513be164f3db8d
Modified files:
user.cpp
ChangeLog:
Prevent User::connect to be called twice
-------------- next part --------------
============================================================
--- user.cpp d7bed0e53262fe352bffa5e9d9de906293963851
+++ user.cpp 7a9c685e4bcddd72b051ebf63391a1d7e32d83d6
@@ -802,6 +802,10 @@ void User::connect(){
* Called when we're ready to connect (we know caps)
*/
void User::connect(){
+ if (!m_readyForConnect) {
+ Log().Get(m_jid) << "We are not ready for connect";
+ return;
+ }
Log().Get(m_jid) << "Connecting with caps: " << m_capsVersion;
if (purple_accounts_find(m_username.c_str(), this->p->protocol()->protocol().c_str()) != NULL){
Log().Get(m_jid) << "this account already exists";
More information about the Commits
mailing list