diff options
author | madmaxoft <github@xoft.cz> | 2014-02-03 10:38:25 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-03 10:39:10 +0100 |
commit | 0b384198e535470ac4aaa7d8f38b3da62b12ea34 (patch) | |
tree | 2ee468ad8a01335e561f00e7ee888992cc87af5b /src/OSSupport/SocketThreads.cpp | |
parent | Groups.ini can contain spaces around commas in values. (diff) | |
download | cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar.gz cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar.bz2 cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar.lz cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar.xz cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.tar.zst cuberite-0b384198e535470ac4aaa7d8f38b3da62b12ea34.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/SocketThreads.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/OSSupport/SocketThreads.cpp b/src/OSSupport/SocketThreads.cpp index 3e2631733..269f1d452 100644 --- a/src/OSSupport/SocketThreads.cpp +++ b/src/OSSupport/SocketThreads.cpp @@ -557,6 +557,11 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write) } } // if (outgoing data is empty) + if (m_Slots[i].m_State == sSlot::ssRemoteClosed) + { + continue; + } + if (!SendDataThroughSocket(m_Slots[i].m_Socket, m_Slots[i].m_Outgoing)) { int Err = cSocket::GetLastError(); @@ -566,7 +571,7 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write) { m_Slots[i].m_Client->SocketClosed(); } - return; + continue; } if (m_Slots[i].m_Outgoing.empty() && (m_Slots[i].m_State == sSlot::ssWritingRestOut)) |