From: Pierre Ossman Date: Sun, 19 Feb 2017 14:51:45 +0000 (+0100) Subject: Fix for exception handling in decoder threads X-Git-Tag: v1.7.90~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e20cf62bbdefd48979603105d60c3a170eb2ece6;p=tigervnc.git Fix for exception handling in decoder threads --- 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());