Skip to content
Permalink
Browse files
Merge pull request #6614 from leoetlino/auto-close
IOS: Do not manually close devices in destructor
  • Loading branch information
leoetlino committed May 5, 2018
2 parents d848c7e + 95aae11 commit 983d500
Showing 1 changed file with 0 additions and 8 deletions.
@@ -188,14 +188,6 @@ Kernel::Kernel()

Kernel::~Kernel()
{
// Close all devices that were opened
for (auto& device : m_fdmap)
{
if (!device)
continue;
device->Close(0);
}

{
std::lock_guard<std::mutex> lock(m_device_map_mutex);
m_device_map.clear();

0 comments on commit 983d500

Please sign in to comment.