C: closing DMS after cleaning it instead of counting on upper layer

This commit is contained in:
Celine Mercier
2020-01-18 17:27:35 +01:00
parent 822000cb70
commit 5c9091e9eb

View File

@ -696,6 +696,12 @@ int obi_clean_dms(const char* dms_path)
// return -1;
// }
if (obi_close_dms(dms, true) < 0)
{
obidebug(1, "\nError closing a DMS after cleaning");
return -1;
}
return 0;
}