mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Merge branch 'master' into new-torrent
This commit is contained in:
@@ -193,6 +193,10 @@ func SetSettings(set *sets.BTSets) {
|
||||
if sets.ReadOnly {
|
||||
return
|
||||
}
|
||||
log.TLogln("drop all torrents")
|
||||
dropAllTorrent()
|
||||
time.Sleep(time.Second * 2)
|
||||
log.TLogln("disconect")
|
||||
bts.Disconnect()
|
||||
sets.SetBTSets(set)
|
||||
log.TLogln("connect")
|
||||
@@ -205,6 +209,10 @@ func SetDefSettings() {
|
||||
if sets.ReadOnly {
|
||||
return
|
||||
}
|
||||
log.TLogln("drop all torrents")
|
||||
dropAllTorrent()
|
||||
time.Sleep(time.Second * 2)
|
||||
log.TLogln("disconect")
|
||||
bts.Disconnect()
|
||||
sets.SetDefault()
|
||||
log.TLogln("connect")
|
||||
|
||||
Reference in New Issue
Block a user