summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-09 20:11:44 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-09 20:11:44 (GMT)
commita7eacf1c5c425f45746c1d9bd2c9f9a3f696584a (patch)
treec4cf25c20bf68489ecff1ab019058d745c0ac105 /Swiften/Network
parenta853ebfbe378f7e3f44e4898b7dbe0db3e954938 (diff)
downloadswift-a7eacf1c5c425f45746c1d9bd2c9f9a3f696584a.zip
swift-a7eacf1c5c425f45746c1d9bd2c9f9a3f696584a.tar.bz2
Treat 'connection closed' as an error.
Diffstat (limited to 'Swiften/Network')
-rw-r--r--Swiften/Network/BoostConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Network/BoostConnection.cpp b/Swiften/Network/BoostConnection.cpp
index 908585d..3f33cfc 100644
--- a/Swiften/Network/BoostConnection.cpp
+++ b/Swiften/Network/BoostConnection.cpp
@@ -114,7 +114,7 @@ void BoostConnection::handleSocketRead(const boost::system::error_code& error, s
eventLoop->postEvent(boost::bind(boost::ref(onDataRead), ByteArray(&readBuffer_[0], bytesTransferred)), shared_from_this());
doRead();
}
- else if (error == boost::asio::error::eof || error == boost::asio::error::operation_aborted) {
+ else if (/*error == boost::asio::error::eof ||*/ error == boost::asio::error::operation_aborted) {
eventLoop->postEvent(boost::bind(boost::ref(onDisconnected), boost::optional<Error>()), shared_from_this());
}
else {
@@ -127,7 +127,7 @@ void BoostConnection::handleDataWritten(const boost::system::error_code& error)
if (!error) {
eventLoop->postEvent(boost::ref(onDataWritten), shared_from_this());
}
- else if (error == boost::asio::error::eof || error == boost::asio::error::operation_aborted) {
+ else if (/*error == boost::asio::error::eof || */error == boost::asio::error::operation_aborted) {
eventLoop->postEvent(boost::bind(boost::ref(onDisconnected), boost::optional<Error>()), shared_from_this());
}
else {