Support rebooting workers
This commit is contained in:
@@ -37,6 +37,9 @@ func (t *TorrentManager) StartRepairJob() {
|
||||
case torrent := <-t.repairTrigger:
|
||||
// On-demand trigger with a specific torrent
|
||||
t.invokeRepair(torrent)
|
||||
case <-t.RepairKillSwitch:
|
||||
t.log.Info("Stopping periodic repair job")
|
||||
return
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user