Explorar el Código

The assert is only valid if we haven't transitioned to end game.

master
Richard Nyberg hace 20 años
padre
commit
ee7abdea2a
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. +5
    -2
      btpd/policy_if.c

+ 5
- 2
btpd/policy_if.c Ver fichero

@@ -58,8 +58,11 @@ cm_on_download(struct peer *p)
struct torrent *tp = p->tp;
if (tp->endgame) {
cm_assign_requests_eg(p);
} else if (cm_assign_requests(p) == 0)
assert(!peer_wanted(p) || peer_laden(p));
} else {
unsigned count = cm_assign_requests(p);
if (count == 0 && !p->tp->endgame) // We may have entered end game.
assert(!peer_wanted(p) || peer_laden(p));
}
}

void


||||||
x
 
000:0
Cargando…
Cancelar
Guardar