Safely attempt to close the settings store (permissions might not allow it)

This commit is contained in:
Robinson 2023-10-17 22:54:34 +02:00
parent 4d09999f0a
commit 047d938386
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 6 additions and 1 deletions

View File

@ -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)
}
}