X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=0f652d0c675fea5882dc2e7e45356828635c59f5;hp=4b4aa7256e261ee761915a3f95d36d1250b5696d;hb=4df78c9720ac21137db6e9f3439506d8bc31923b;hpb=98e2e99d0441ffd1988095473048519593b1a701 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());