diff --git a/services/netconnmanager/src/net_supplier.cpp b/services/netconnmanager/src/net_supplier.cpp index 8a77663d1de5052db3772744cdf0a9fef6dfdb9c..a3dbce2ba586829ae3c10056463427cfbd1a60e3 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;