From kde-commits Tue Nov 03 23:43:35 2009 From: Roman Jarosz Date: Tue, 03 Nov 2009 23:43:35 +0000 To: kde-commits Subject: branches/KDE/4.3/kdenetwork/kopete/protocols/yahoo/libkyahoo Message-Id: <1257291815.894510.3931.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125729182501358 SVN commit 1044534 by rjarosz: Backport commit 1044526. Disconnect signals on reset so we don't get signals twice on reconnect. Check if d->bs is not null. CCBUG: 188042 M +4 -0 yahooclientstream.cpp --- branches/KDE/4.3/kdenetwork/kopete/protocols/yahoo/libkyahoo/yahooclientstream.cpp #1044533:1044534 @@ -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 );