]> source.dussan.org Git - tigervnc.git/commitdiff
Fix for exception handling in decoder threads
authorPierre Ossman <ossman@cendio.se>
Sun, 19 Feb 2017 14:51:45 +0000 (15:51 +0100)
committerPierre Ossman <ossman@cendio.se>
Wed, 22 Feb 2017 15:47:07 +0000 (16:47 +0100)
common/rfb/DecodeManager.cxx

index a655c53afb395cfa66536cd47494789744517caa..ccf084f7ccc730ae7feb7338cc5e0cb637ab1ef6 100644 (file)
@@ -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());