initial work on redis scripts

This commit is contained in:
Jimmy Zelinskie
2013-07-24 03:08:38 -04:00
parent 2cd3473d18
commit 94187e4261
5 changed files with 89 additions and 22 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
}
// If the torrent was pruned and the user is seeding, unprune it
if torrent.Pruned && left == 0 {
err := tx.Unprune(torrent)
if !torrent.Active && left == 0 {
err := tx.Active(torrent)
if err != nil {
log.Panicf("server: %s", err)
}