The shutdown flag should be set to true when all virtual sockets are disconnected.

PiperOrigin-RevId: 658149636
This commit is contained in:
hai007
2024-07-31 14:49:24 -07:00
committed by Copybara-Service
parent 1733ab64cb
commit 673af15b5a
@@ -669,7 +669,7 @@ void MultiplexSocket::OnVirtualSocketClosed(const std::string& service_id) {
NEARBY_LOGS(INFO) << "Close the physical socket because all virtual "
"sockets disconnected.";
Shutdown();
// shutdown = true;
shutdown = true;
}
} else {
NEARBY_LOGS(INFO) << "Virtual socket(" << service_id