Merge pull request #6614 from leoetlino/auto-close
IOS: Do not manually close devices in destructor
This commit is contained in:
commit
983d500d14
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue