This commit is contained in:
YouROK
2020-11-13 15:42:23 +03:00
parent 4645e7226e
commit ba26982d6f
6 changed files with 36 additions and 14 deletions

View File

@@ -65,6 +65,11 @@ func stream(c *gin.Context) {
return
}
if !tor.GotInfo() {
c.AbortWithError(http.StatusInternalServerError, errors.New("timeout connection torrent"))
return
}
// save to db
if save {
torr.SaveTorrentToDB(tor)