summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 20:04:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 20:04:24 +0000
commit8af51fb7d539e19e43b924adb1d52e78c699ef10 (patch)
tree63e97419b11db2dfb031de37e64d31583aaffb00
parent4c03c456e65cb9d8143b25cc11b9b269798ece60 (diff)
Put some error checking back in here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3684 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 06e01f54c..498b17949 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -257,7 +257,9 @@ int InspSocket::Write(const std::string &data)
if (this->ClosePending)
return false;
- write(this->fd,data.c_str(),data.length());
+ int result = write(this->fd,data.c_str(),data.length());
+ if (result < 1)
+ return false;
return true;
/* Try and append the data to the back of the queue, and send it on its way