Allow repair from ok torrent
This commit is contained in:
@@ -9,7 +9,7 @@ func NewTorrentState(initial string) *fsm.FSM {
|
||||
initial,
|
||||
fsm.Events{
|
||||
{Name: "break_torrent", Src: []string{"ok_torrent"}, Dst: "broken_torrent"},
|
||||
{Name: "repair_torrent", Src: []string{"broken_torrent"}, Dst: "under_repair_torrent"},
|
||||
{Name: "repair_torrent", Src: []string{"ok_torrent", "broken_torrent"}, Dst: "under_repair_torrent"},
|
||||
{Name: "mark_as_repaired", Src: []string{"broken_torrent", "under_repair_torrent"}, Dst: "ok_torrent"},
|
||||
},
|
||||
fsm.Callbacks{},
|
||||
|
||||
Reference in New Issue
Block a user