summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-15 23:02:24 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-15 23:02:24 +0000
commitbf0dd0513e016abb4025748fe12e57539078c70b (patch)
tree6df4baa868ec70fda6bede5f6f1f27179cfaaeac /src/inspsocket.cpp
parentee83c3cc5d7e2f6b905f35d402647d04b664d8d9 (diff)
Dump sendq before closing socket
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12469 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index f06ddf28d..65b554006 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -120,6 +120,8 @@ void StreamSocket::Close()
{
if (this->fd > -1)
{
+ // final chance, dump as much of the sendq as we can
+ DoWrite();
if (IOHook)
{
try