diff --git a/src/SFML/System/Win32/ThreadImpl.cpp b/src/SFML/System/Win32/ThreadImpl.cpp index 56832fdb..cc1ff653 100644 --- a/src/SFML/System/Win32/ThreadImpl.cpp +++ b/src/SFML/System/Win32/ThreadImpl.cpp @@ -57,12 +57,7 @@ ThreadImpl::~ThreadImpl() void ThreadImpl::Wait() { if (myThread) - { - // The following condition avoids a deadlock if Wait() is called from its - // owner thread. This makes the behaviour consistent with the Unix implementation - if (GetThreadId(myThread) != GetCurrentThreadId()) - WaitForSingleObject(myThread, INFINITE); - } + WaitForSingleObject(myThread, INFINITE); }