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-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=fd34d3dd65480a6c90094f1be04318cf7a57921d fixing a bug in core.cpp (yet another crash on exit) --- diff --git a/src/core/core.cpp b/src/core/core.cpp index 47b4bbbd..145a9fa8 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -518,9 +518,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());