Fix missing mutex in Unix socket shutdown.

This commit is contained in:
Jonas 'Sortie' Termansen 2017-02-23 22:43:09 +01:00
parent 961ba9ec6c
commit 8f3e11b162
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ int StreamSocket::setsockopt(ioctx_t* ctx, int level, int option_name,
int StreamSocket::shutdown(ioctx_t* /*ctx*/, int how)
{
ScopedLock lock(&socket_lock);
if ( how & SHUT_RD )
incoming.Disconnect();
if ( how & SHUT_WR )