From bb97450ce228a86de631f3f8538f64415b2ee338 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Tue, 27 May 2014 00:33:53 +0200 Subject: Drop _activeVncClient. _currentProjectionSource holds this information. --- src/server/net/client.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/server/net/client.cpp') diff --git a/src/server/net/client.cpp b/src/server/net/client.cpp index 4478e28..ef131fc 100644 --- a/src/server/net/client.cpp +++ b/src/server/net/client.cpp @@ -23,7 +23,6 @@ Client::Client(QSslSocket* socket) : _socket(socket) _isBroadcastSource = false; _currentProjectionSource = 0; _vncPort = 0; - _activeVncClient = false; _isTutor = false; _id = ++_clientIdCounter; @@ -189,10 +188,8 @@ void Client::handleMsg() else if (id == _VNCCLIENT) { // Client tells us that it started or stopped displaying a remote screen via VNC - _activeVncClient = (_fromClient.getFieldString("ENABLED").toInt() != 0); const int projectionSource = (int)_fromClient.getFieldString("CLIENTID").toInt(); - - if (_activeVncClient) + if (_fromClient.getFieldString("ENABLED").toInt() != 0) { qDebug() << "Client " << _name << " started its VNC client (watching " << projectionSource << ")"; emit vncClientStateChange(this, _currentProjectionSource); -- cgit v1.2.3-55-g7522