Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/murmur/Server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/murmur/Server.cpp b/src/murmur/Server.cpp
index 6809d19a7..2e71fd798 100644
--- a/src/murmur/Server.cpp
+++ b/src/murmur/Server.cpp
@@ -1671,7 +1671,7 @@ void Server::connectionClosed(QAbstractSocket::SocketError err, const QString &r
QCoreApplication::instance()->postEvent(this,
new ExecEvent(boost::bind(&Server::removeChannel, this, old->iId)));
- if (static_cast< int >(u->uiSession) < iMaxUsers * 2)
+ if (u->uiSession > 0 && static_cast< int >(u->uiSession) < iMaxUsers * 2)
qqIds.enqueue(u->uiSession); // Reinsert session id into pool
if (u->sState == ServerUser::Authenticated) {