From: Marcus Eggenberger Date: Mon, 14 Jul 2008 12:54:51 +0000 (+0200) Subject: fixing a bug in core.cpp (yet another crash on exit) X-Git-Tag: 0.3.0~270 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=4df78c9720ac21137db6e9f3439506d8bc31923b fixing a bug in core.cpp (yet another crash on exit) --- diff --git a/src/core/core.cpp b/src/core/core.cpp index 4b4aa725..0f652d0c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -532,9 +532,12 @@ void Core::clientDisconnected() { if(socket) { // here it's safe to call methods on socket! qDebug() << qPrintable(tr("Non-authed client disconnected.")) << qPrintable(socket->peerAddress().toString()); + blocksizes.remove(socket); + clientInfo.remove(socket); socket->deleteLater(); } else { // we have to crawl through the hashes and see if we find a victim to remove + qDebug() << qPrintable(tr("Non-authed client disconnected. (socket allready destroyed)")); // DO NOT CALL ANY METHODS ON socket!! socket = static_cast(sender());