projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1fbc18
)
fixing a bug in core.cpp (yet another crash on exit)
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 14 Jul 2008 12:54:51 +0000
(14:54 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 14 Jul 2008 12:54:51 +0000
(14:54 +0200)
src/core/core.cpp
patch
|
blob
|
history
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
47b4bbb
..
145a9fa
100644
(file)
--- 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());
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
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<QTcpSocket *>(sender());
// DO NOT CALL ANY METHODS ON socket!!
socket = static_cast<QTcpSocket *>(sender());