asio: client: Should call shutdown_socket() on read error
This commit is contained in:
parent
ca4a40b8e0
commit
09bd9c94a3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue