Clear _is_initialized flag during deinit

pull/7774/head
Deepika 2017-07-11 14:30:59 -05:00
parent 21e6f47aa4
commit 954167fb40
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ int SDBlockDevice::init()
int SDBlockDevice::deinit() int SDBlockDevice::deinit()
{ {
_lock.lock();
_is_initialized = false;
_lock.unlock();
return 0; return 0;
} }