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()