[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/yahoo/libkyahoo
From:       Roman Jarosz <kedgedev () gmail ! com>
Date:       2009-11-03 23:15:08
Message-ID: 1257290108.238511.19928.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1044526 by rjarosz:

Disconnect signals on reset so we don't get signals twice on reconnect.
Check if d->bs is not null.

BUG: 188042


 M  +4 -0      yahooclientstream.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/yahoo/libkyahoo/yahooclientstream.cpp #1044525:1044526
@@ -135,6 +135,7 @@
 		
 		// reset connector
 		if(d->bs) {
+			disconnect(d->bs, 0, this, 0);
 			d->bs->close();
 			d->bs = 0;
 		}
@@ -296,6 +297,9 @@
 
 void ClientStream::cp_outgoingData( const QByteArray& outgoingBytes )
 {
+	if ( !d->bs )
+		return;
+	
 	// take formatted bytes from CoreProtocol and put them on the wire
 	kDebug(YAHOO_RAW_DEBUG) << "[data size: " << outgoingBytes.size() << "]";
 	//cs_dump( outgoingBytes );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic