Commit cc37c963 authored by TousakaRin's avatar TousakaRin

fix coredump

parent fc5b4abf
......@@ -765,9 +765,12 @@ void Controller::Call::OnComplete(Controller* c, int error_code/*note*/,
sending_sock.get(), c, error_code);
}
if (enable_circuit_breaker) {
sending_sock->FeedbackCircuitBreaker(error_code,
SocketUniquePtr sock;
if (Socket::Address(peer_id, &sock) == 0) {
sock->FeedbackCircuitBreaker(error_code,
butil::gettimeofday_us() - begin_time_us);
}
}
// Release the `Socket' we used to send/receive data
sending_sock.reset(NULL);
......
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