This commit is contained in:
YouROK
2020-11-26 22:12:44 +03:00
parent a70c6374c3
commit f1aa7858f2

View File

@@ -116,7 +116,7 @@ func remTorrent(req torrReqJS, c *gin.Context) {
func listTorrent(req torrReqJS, c *gin.Context) { func listTorrent(req torrReqJS, c *gin.Context) {
list := torr.ListTorrent() list := torr.ListTorrent()
if list == nil { if list == nil {
c.Status(http.StatusNotFound) c.JSON(200, []*state.TorrentStatus{})
return return
} }
var stats []*state.TorrentStatus var stats []*state.TorrentStatus