mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Deliberately 'leak' winsock to avoid deadlock on shutdown. Closes #2079
This commit is contained in:
@@ -109,7 +109,10 @@ void Init()
|
||||
|
||||
void Shutdown()
|
||||
{
|
||||
WSACleanup();
|
||||
// we'd normally call WSACleanup() here but we can't - like many functions we call anyway it's not
|
||||
// safe to call in DllMain when shutting down. Unlike other functions, it has minimal impact to
|
||||
// just skip the call and 'leak' winsock since we're shutting down the process anyway.
|
||||
// WSACleanup();
|
||||
}
|
||||
|
||||
Socket::~Socket()
|
||||
|
||||
Reference in New Issue
Block a user