mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
temp timer test
This commit is contained in:
@@ -135,13 +135,14 @@ func (t *Torrent) AddExpiredTime(duration time.Duration) {
|
||||
}
|
||||
|
||||
func (t *Torrent) watch() {
|
||||
t.progressTicker = time.NewTicker(time.Second)
|
||||
t.progressTicker = time.NewTicker(time.Second / 2)
|
||||
defer t.progressTicker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-t.progressTicker.C:
|
||||
go t.progressEvent()
|
||||
time.Sleep(time.Second / 2) // FIXME! TEMP TEST TIMER
|
||||
case <-t.closed:
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user