summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/SocketThreads.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
commit59b8205f02eb7bf2954acba56fd63f485a30ece5 (patch)
tree55baedf13c6c5cc132ca0f81d6c30c01a434be2d /src/OSSupport/SocketThreads.cpp
parentSwitched cEvent to use strerror_r for error messages (diff)
downloadcuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.gz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.bz2
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.lz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.xz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.zst
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.zip
Diffstat (limited to 'src/OSSupport/SocketThreads.cpp')
-rw-r--r--src/OSSupport/SocketThreads.cpp3
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)
{