diff options
Diffstat (limited to 'src/server/net/client.cpp')
-rw-r--r-- | src/server/net/client.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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); |