summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stream_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp
index 46d5a52..d9125d0 100644
--- a/src/stream_engine.cpp
+++ b/src/stream_engine.cpp
@@ -97,7 +97,7 @@ xs::stream_engine_t::~stream_engine_t ()
wsa_assert (rc != SOCKET_ERROR);
#else
int rc = close (s);
- errno_assert (rc == 0);
+ errno_assert (rc == 0 || errno == ECONNRESET);
#endif
s = retired_fd;
}