diff options
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r-- | common/rfb/VNCServerST.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 85368afe..b32cac59 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -171,7 +171,7 @@ void VNCServerST::removeSocket(network::Socket* sock) { if (pointerClient == *ci) pointerClient = NULL; if (clipboardClient == *ci) - clipboardClient = NULL; + handleClipboardAnnounce(*ci, false); clipboardRequestors.remove(*ci); CharArray name(strDup((*ci)->getPeerEndpoint())); @@ -517,8 +517,10 @@ void VNCServerST::handleClipboardAnnounce(VNCSConnectionST* client, void VNCServerST::handleClipboardData(VNCSConnectionST* client, const char* data) { - if (client != clipboardClient) + if (client != clipboardClient) { + slog.debug("Ignoring unexpected clipboard data"); return; + } desktop->handleClipboardData(data); } |