From 8001b433f79b3f6062100842578521eabf039057 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 12 Jul 2018 17:14:28 +0200 Subject: [server] Unconditionally disable vnc server if no clients left --- src/server/mainwindow/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 8d5bd4a..e442d1d 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -1280,7 +1280,7 @@ void MainWindow::onVncClientStateChange(Client* client) break; } - if ( !(serverHasWatchers || _mode == Mode::Broadcast) ) { + if ( !serverHasWatchers ) { Client* c = getClientFromId(client->projectionSource()); if (c != NULL) c->stopVncServer(); @@ -1329,7 +1329,7 @@ void MainWindow::onDeleteClient() if (ret == 1) { frame->hide(); frame->deleteLater(); - _clientFrames.removeOne(frame); + _clientFrames.removeAll(frame); lockContextButtons(); clientCountChanged(); return; -- cgit v1.2.3-55-g7522