Commit a92ee0b3 authored by TousakaRin's avatar TousakaRin

Fix bug: a typo that could lead to a coredump

parent 2dec1be9
......@@ -765,7 +765,7 @@ void Controller::Call::OnComplete(Controller* c, int error_code/*note*/,
sending_sock.get(), c, error_code);
}
if (enable_circuit_breaker) {
if (sending_sock) {
if (!sending_sock) {
SocketUniquePtr sock;
if (Socket::Address(peer_id, &sock) == 0) {
sock->FeedbackCircuitBreaker(error_code,
......
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