asio: client: Should call shutdown_socket() on read error

This commit is contained in:
Tatsuhiro Tsujikawa 2015-12-22 00:40:22 +09:00
parent ca4a40b8e0
commit 09bd9c94a3
1 changed files with 2 additions and 1 deletions

View File

@ -527,8 +527,9 @@ void session_impl::do_read() {
if (ec) { if (ec) {
if (!should_stop()) { if (!should_stop()) {
call_error_cb(ec); call_error_cb(ec);
shutdown_socket();
} }
shutdown_socket();
return; return;
} }