summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 17:28:25 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 17:28:25 +0000
commit7c1352df0c8bb2624d4f2cc8320467578c39a6ad (patch)
tree95a8b7aed3e46aa13f669fa2badcb6a6cbbece1f /src/inspsocket.cpp
parent7107ec12d8640d35cfe3d5002db1bc1deb33625d (diff)
Compile fixes and message updates
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11767 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 004d679ed..a46907ca5 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -437,7 +437,10 @@ void StreamSocket::HandleEvent(EventType et, int errornum)
{
case EVENT_ERROR:
{
- SetError(strerror(errornum));
+ if (errornum == 0)
+ SetError("Connection closed");
+ else
+ SetError(strerror(errornum));
switch (errornum)
{
case ETIMEDOUT: