Safely attempt to close the settings store (permissions might not allow it)
This commit is contained in:
parent
4d09999f0a
commit
047d938386
|
@ -192,7 +192,12 @@ class SettingsStore(storageBuilder: Storage.Builder, val logger: Logger) : AutoC
|
|||
* Take the proper steps to close the storage system.
|
||||
*/
|
||||
override fun close() {
|
||||
store.close()
|
||||
try {
|
||||
store.close()
|
||||
}
|
||||
catch (exception: Exception) {
|
||||
logger.error("Unable to close the storage!", exception)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue