Skip to content

Commit

Permalink
Close db after optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Aug 23, 2023
1 parent 0bf55d9 commit 13b86a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ fun EpubBackendState.optimizeEpub() {
}
fileForOriginalId(k).delete()
}
val total = (System.currentTimeMillis() - start) / 1000;
val total = (System.currentTimeMillis() - start) / 1000
writeDb.close()
optimizeLockFile.delete()
Log.i(TAG, "Total time in optimization: $total")
}

0 comments on commit 13b86a0

Please sign in to comment.