Merge pull request #6614 from leoetlino/auto-close

IOS: Do not manually close devices in destructor
This commit is contained in:
Léo Lam 2018-05-05 10:53:06 +02:00 committed by GitHub
commit 983d500d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -188,14 +188,6 @@ Kernel::Kernel()
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); std::lock_guard<std::mutex> lock(m_device_map_mutex);
m_device_map.clear(); m_device_map.clear();