Browse Source

Android: Fixed a potential deadlock in Sockets

tags/2021-05-28
hogliux 8 years ago
parent
commit
64597c2873
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/network/juce_Socket.cpp

+ 1
- 1
modules/juce_core/network/juce_Socket.cpp View File

@@ -130,7 +130,7 @@ namespace SocketHelpers
// a chance to process before close is called. On Mac OS X shutdown
// does not unblock a select call, so using a lock here will dead-lock
// both threads.
#if JUCE_LINUX
#if JUCE_LINUX || JUCE_ANDROID
CriticalSection::ScopedLockType lock (readLock);
::close (h);
#else


Loading…
Cancel
Save