From 8342850bb7d8d9cb388107e74beb25faa6f790d6 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 30 Aug 2018 02:29:06 -0400 Subject: [PATCH] bugfix deadlock --- GUI/host/textthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index 6fd0023..8ee7192 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -9,10 +9,10 @@ TextThread::TextThread(ThreadParam tp, DWORD status) : tp(tp), status(status) {} TextThread::~TextThread() { - LOCK(ttMutex); SetEvent(deletionEvent); flushThread.join(); CloseHandle(deletionEvent); + LOCK(ttMutex); } std::wstring TextThread::GetStore()