summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r--src/server/mainwindow/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index 6afa608..d1974ab 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -812,6 +812,12 @@ void MainWindow::onClientAuthenticated(Client* client)
tellClientCurrentSituation(client);
return;
}
+
+ if (_clientFrames.size() > 50) {
+ client->deleteLater();
+ return;
+ }
+
// New one, create
ConnectionFrame *cf = createFrame();
// Try to load last known position