mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
In posix StreamingSocket, added a shutdown call before closing the socket to make it disconnect.
This commit is contained in:
parent
1caff11c6b
commit
ef63ba5d80
1 changed files with 3 additions and 0 deletions
|
|
@ -389,7 +389,10 @@ void StreamingSocket::close()
|
|||
}
|
||||
|
||||
if (handle != -1)
|
||||
{
|
||||
::shutdown (handle, SHUT_RDWR);
|
||||
::close (handle);
|
||||
}
|
||||
#endif
|
||||
|
||||
hostName.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue