From fae44ed114c320f36ca0713bb62c6c650971f741 Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 19 Feb 2021 11:22:22 -0800 Subject: [PATCH] 357261873 Close channels as UNFINISHED on dupe BwuAvailable event. --- cpp/core/internal/bwu_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/core/internal/bwu_manager.cc b/cpp/core/internal/bwu_manager.cc index 6cfeab48..01e4c456 100644 --- a/cpp/core/internal/bwu_manager.cc +++ b/cpp/core/internal/bwu_manager.cc @@ -412,7 +412,7 @@ void BwuManager::ProcessBwuPathAvailableEvent( std::shared_ptr previous_endpoint_channel = item.mapped(); if (previous_endpoint_channel) { - previous_endpoint_channel->Close(DisconnectionReason::IO_ERROR); + previous_endpoint_channel->Close(DisconnectionReason::UNFINISHED); } } std::shared_ptr new_channel = @@ -421,7 +421,7 @@ void BwuManager::ProcessBwuPathAvailableEvent( // The upgraded channel never finished upgrading, and therefore is still // paused. new_channel->Resume(); - new_channel->Close(DisconnectionReason::IO_ERROR); + new_channel->Close(DisconnectionReason::UNFINISHED); } return;