mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 09:48:09 -07:00
initial work on redis scripts
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user