From baca33fe20f12286a4fd3412c616c852d55a3417 Mon Sep 17 00:00:00 2001 From: sr Date: Tue, 5 Feb 2013 18:19:31 +0100 Subject: [SHARED] Add missing error message if network message parsing fails --- src/server/mainwindow/mainwindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/server/mainwindow/mainwindow.cpp') diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 1d9e565..9e89baa 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -724,10 +724,11 @@ void MainWindow::onVncServerStateChange(Client* client) for (QList::iterator it(_clientFrames.begin()); it != _clientFrames.end(); ++it) { Client *c = (**it).client(); - if (c == NULL) - continue; // Offline - if (c->id() == client->id() || - (c->desiredProjectionSource() != client->id() && !client->isProjectionSource())) + if (c == NULL || c->id() == client->id()) + continue; // Offline or self + if (c->currentProjectionSource() == client->id()) + continue; // Already watching this client + if (c->desiredProjectionSource() != client->id() && !client->isProjectionSource()) continue; // Not interested c->sendMessage(msg); } -- cgit v1.2.3-55-g7522