Commit db251cb6 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Merge branch 'trac5336'

parents 33dbf016 eac94fb8
...@@ -213,8 +213,10 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handle ...@@ -213,8 +213,10 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handle
if ((ec.value() == boost::asio::error::would_block) || if ((ec.value() == boost::asio::error::would_block) ||
(ec.value() == boost::asio::error::try_again)) { (ec.value() == boost::asio::error::try_again)) {
doSend(buffer, remote_handler); doSend(buffer, remote_handler);
} else {
remote_handler(ec, length);
} }
remote_handler(ec, length);
} }
void void
...@@ -246,8 +248,10 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_han ...@@ -246,8 +248,10 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_han
if ((ec.value() == boost::asio::error::would_block) || if ((ec.value() == boost::asio::error::would_block) ||
(ec.value() == boost::asio::error::try_again)) { (ec.value() == boost::asio::error::try_again)) {
doReceive(buffer, remote_handler); doReceive(buffer, remote_handler);
} else {
remote_handler(ec, length);
} }
remote_handler(ec, length);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment