decrease timeouts and add client check on add new torrent

This commit is contained in:
nikk gitanes
2022-05-17 06:39:52 +03:00
parent e87a5e716e
commit a2fbd0ee80
2 changed files with 6 additions and 6 deletions

View File

@@ -196,12 +196,12 @@ func SetSettings(set *sets.BTSets) {
sets.SetBTSets(set)
log.TLogln("drop all torrents")
dropAllTorrent()
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 1)
log.TLogln("disconect")
bts.Disconnect()
log.TLogln("connect")
bts.Connect()
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 1)
log.TLogln("end set settings")
}
@@ -212,12 +212,12 @@ func SetDefSettings() {
sets.SetDefault()
log.TLogln("drop all torrents")
dropAllTorrent()
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 1)
log.TLogln("disconect")
bts.Disconnect()
log.TLogln("connect")
bts.Connect()
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 1)
log.TLogln("end set default settings")
}