mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add shutdown
This commit is contained in:
@@ -14,3 +14,10 @@ func InitSets(path string, readOnly bool) {
|
||||
func CloseDB() {
|
||||
tdb.CloseDB()
|
||||
}
|
||||
|
||||
func IsReadOnly() bool {
|
||||
if tdb == nil || tdb.ReadOnly {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user