From 806b428fe9f5707c5a327a9dcf532253d575a326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCttner?= Date: Thu, 11 Apr 2019 12:17:13 +0200 Subject: [PATCH] Fix freezing the UE editor when quitting game mode after capturing. The FEvent was triggered on Stop but directly reset into the waiting state afterwards. Removing resetting correctly terminates the thread. --- .../Source/NVSceneCapturer/Private/NVImageExporter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVImageExporter.cpp b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVImageExporter.cpp index b5dbd2cbd3d..8d4f273f059 100644 --- a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVImageExporter.cpp +++ b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVImageExporter.cpp @@ -424,7 +424,6 @@ void FNVImageExporter_Thread::Stop() { // Trigger the event so the thread doesn't wait anymore HavePendingImageEvent->Trigger(); - HavePendingImageEvent->Reset(); } }