Slow down automatic wake-up of Queueupdater and Downloader.
This commit is contained in:
parent
ac96eaab6d
commit
661f42516f
4
main.go
4
main.go
|
@ -330,7 +330,7 @@ func (d *Daemon) StartDownloader() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Daemon) QueueUpdater() {
|
func (d *Daemon) QueueUpdater() {
|
||||||
t := time.NewTicker(30 * time.Second)
|
t := time.NewTicker(30 * time.Minute)
|
||||||
defer t.Stop()
|
defer t.Stop()
|
||||||
for {
|
for {
|
||||||
// lock Podcast list and update download queue
|
// lock Podcast list and update download queue
|
||||||
|
@ -355,7 +355,7 @@ func (d *Daemon) QueueUpdater() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (q *dlQueue) Downloader() {
|
func (q *dlQueue) Downloader() {
|
||||||
t := time.NewTicker(30 * time.Second)
|
t := time.NewTicker(30 * time.Minute)
|
||||||
defer t.Stop()
|
defer t.Stop()
|
||||||
LOOP:
|
LOOP:
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user