Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fa65a82 authored by Myles Watson's avatar Myles Watson
Browse files

test_vendor: Stop watching before closing the FD

Test: net_test_bluetooth BluetoothTest.AdapterRepeatedEnableDisable
Change-Id: I72f5c9105b535ad5a5c41bc15dc9a3ad5f4e023f
parent 1940bdd1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -110,7 +110,10 @@ void VendorManager::SetUpTestChannel(int port) {
  });
}

void VendorManager::CloseHciFd() { transport_.CloseHciFd(); }
void VendorManager::CloseHciFd() {
  async_manager_.StopWatchingFileDescriptor(transport_.GetHciFd());
  transport_.CloseHciFd();
}

int VendorManager::GetHciFd() const { return transport_.GetHciFd(); }