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 {
|
if sets.ReadOnly {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.TLogln("drop all torrents")
|
||||||
|
dropAllTorrent()
|
||||||
|
time.Sleep(time.Second * 2)
|
||||||
|
log.TLogln("disconect")
|
||||||
bts.Disconnect()
|
bts.Disconnect()
|
||||||
sets.SetBTSets(set)
|
sets.SetBTSets(set)
|
||||||
log.TLogln("connect")
|
log.TLogln("connect")
|
||||||
@@ -205,6 +209,10 @@ func SetDefSettings() {
|
|||||||
if sets.ReadOnly {
|
if sets.ReadOnly {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.TLogln("drop all torrents")
|
||||||
|
dropAllTorrent()
|
||||||
|
time.Sleep(time.Second * 2)
|
||||||
|
log.TLogln("disconect")
|
||||||
bts.Disconnect()
|
bts.Disconnect()
|
||||||
sets.SetDefault()
|
sets.SetDefault()
|
||||||
log.TLogln("connect")
|
log.TLogln("connect")
|
||||||
|
|||||||
Reference in New Issue
Block a user