From 93c6567c0b029da4288d56b3e0f61651421e5bbf Mon Sep 17 00:00:00 2001 From: zhangjie Date: Sat, 30 Aug 2025 09:03:41 +0000 Subject: [PATCH] update services/netconnmanager/src/net_supplier.cpp. Signed-off-by: zhangjie --- services/netconnmanager/src/net_supplier.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/services/netconnmanager/src/net_supplier.cpp b/services/netconnmanager/src/net_supplier.cpp index 8a77663d1..a3dbce2ba 100644 --- a/services/netconnmanager/src/net_supplier.cpp +++ b/services/netconnmanager/src/net_supplier.cpp @@ -293,13 +293,6 @@ bool NetSupplier::SupplierDisconnection(const std::set &netCaps, uint32_ { NETMGR_LOG_D("Supplier[%{public}d, %{public}s] request disconnect, available=%{public}d", supplierId_, netSupplierIdent_.c_str(), netSupplierInfo_.isAvailable_); - bool isInternal = HasNetCap(NET_CAPABILITY_INTERNAL_DEFAULT); - bool isXcap = HasNetCap(NET_CAPABILITY_XCAP); - bool isMms = HasNetCap(NET_CAPABILITY_MMS); - if (!netSupplierInfo_.isAvailable_ && !isInternal && !isXcap && !isMms) { - NETMGR_LOG_D("The supplier is currently unavailable, there is no need to repeat the request to disconnect."); - return true; - } if (netController_ == nullptr) { NETMGR_LOG_E("netController_ is nullptr"); return false; -- Gitee