summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
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: