summaryrefslogtreecommitdiffstats
path: root/src/server/net/client.cpp
diff options
context:
space:
mode:
authorManuel Schneider2014-05-27 00:33:53 +0200
committerManuel Schneider2014-05-27 00:33:53 +0200
commitbb97450ce228a86de631f3f8538f64415b2ee338 (patch)
treee39658c76bc38a1815662cf33011a5569c992215 /src/server/net/client.cpp
parentDrop _desiredProjectionSource. Dont send a stopVncClient if it has not been s... (diff)
downloadpvs2-bb97450ce228a86de631f3f8538f64415b2ee338.tar.gz
pvs2-bb97450ce228a86de631f3f8538f64415b2ee338.tar.xz
pvs2-bb97450ce228a86de631f3f8538f64415b2ee338.zip
Drop _activeVncClient. _currentProjectionSource holds this information.
Diffstat (limited to 'src/server/net/client.cpp')
-rw-r--r--src/server/net/client.cpp5
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);