diff options
author | Mattes D <github@xoft.cz> | 2014-01-25 19:43:00 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-25 19:43:00 +0100 |
commit | c8be9b5b1aa152e61ca61870c0f95313571e1918 (patch) | |
tree | 93be710bd8884e526ff719b4302fd2eb4569b66c /src/OSSupport/SocketThreads.cpp | |
parent | Comm logging is available in both Debug and Release modes. (diff) | |
parent | Switched cEvent to GetOSErrorString (diff) | |
download | cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.gz cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.bz2 cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.lz cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.xz cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.zst cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.zip |
Diffstat (limited to 'src/OSSupport/SocketThreads.cpp')
-rw-r--r-- | src/OSSupport/SocketThreads.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OSSupport/SocketThreads.cpp b/src/OSSupport/SocketThreads.cpp index b8069cf00..74932daf8 100644 --- a/src/OSSupport/SocketThreads.cpp +++ b/src/OSSupport/SocketThreads.cpp @@ -7,6 +7,7 @@ #include "Globals.h" #include "SocketThreads.h" +#include "Errors.h" @@ -556,7 +557,7 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write) if (Sent < 0) { int Err = cSocket::GetLastError(); - LOGWARNING("Error %d while writing to client \"%s\", disconnecting. \"%s\"", Err, m_Slots[i].m_Socket.GetIPString().c_str(), cSocket::GetErrorString(Err).c_str()); + LOGWARNING("Error %d while writing to client \"%s\", disconnecting. \"%s\"", Err, m_Slots[i].m_Socket.GetIPString().c_str(), GetOSErrorString(Err).c_str()); m_Slots[i].m_Socket.CloseSocket(); if (m_Slots[i].m_Client != NULL) { |