Fix repair condition
This commit is contained in:
@@ -16,6 +16,8 @@ func NewTorrentState(initial string) *fsm.FSM {
|
||||
// when merging with another same hash torrent
|
||||
// when a torrent is rar'ed and not extracting
|
||||
{Name: "mark_as_repaired", Src: []string{"broken_torrent", "under_repair_torrent"}, Dst: "ok_torrent"},
|
||||
// when resetting repair state
|
||||
{Name: "reset_repair", Src: []string{"under_repair_torrent"}, Dst: "broken_torrent"},
|
||||
},
|
||||
fsm.Callbacks{},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user