Browse Source

In posix StreamingSocket, added a shutdown call before closing the socket to make it disconnect.

tags/2021-05-28
jules 11 years ago
parent
commit
ef63ba5d80
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_core/network/juce_Socket.cpp

+ 3
- 0
modules/juce_core/network/juce_Socket.cpp View File

@@ -389,7 +389,10 @@ void StreamingSocket::close()
}
if (handle != -1)
{
::shutdown (handle, SHUT_RDWR);
::close (handle);
}
#endif
hostName.clear();


Loading…
Cancel
Save