OSDN Git Service

Always set interface down in object destruction
[android-x86/system-connectivity-wificond.git] / ap_interface_impl.cpp
index 0bbbb85..e7f0df9 100644 (file)
@@ -48,6 +48,7 @@ ApInterfaceImpl::ApInterfaceImpl(const string& interface_name,
 
 ApInterfaceImpl::~ApInterfaceImpl() {
   binder_->NotifyImplDead();
+  if_tool_->SetUpState(interface_name_.c_str(), false);
 }
 
 sp<IApInterface> ApInterfaceImpl::GetBinder() const {