aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-02-19 15:51:45 +0100
committerPierre Ossman <ossman@cendio.se>2017-02-22 16:47:07 +0100
commite20cf62bbdefd48979603105d60c3a170eb2ece6 (patch)
tree743cad3034d25887492412ef99d29fb994571c02
parente5ac20fd1ed479cd0e9372304bdfc5c1c3fa991d (diff)
downloadtigervnc-e20cf62bbdefd48979603105d60c3a170eb2ece6.tar.gz
tigervnc-e20cf62bbdefd48979603105d60c3a170eb2ece6.zip
Fix for exception handling in decoder threads
-rw-r--r--common/rfb/DecodeManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/DecodeManager.cxx b/common/rfb/DecodeManager.cxx
index a655c53a..ccf084f7 100644
--- a/common/rfb/DecodeManager.cxx
+++ b/common/rfb/DecodeManager.cxx
@@ -197,7 +197,7 @@ void DecodeManager::setThreadException(const rdr::Exception& e)
{
os::AutoMutex a(queueMutex);
- if (threadException == NULL)
+ if (threadException != NULL)
return;
threadException = new rdr::Exception("Exception on worker thread: %s", e.str());