Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
Immanuel
/
btpd
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
Remove the events for a peer's socket before closing it. At least the epoll
libevent backend didn't like the fd to be closed. Reported by Ludvig Omholt.
master
Richard Nyberg
18 anos atrás
pai
45ceb46c42
commit
7ce1098dff
1 arquivos alterados
com
1 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-1
btpd/peer.c
+ 1
- 1
btpd/peer.c
Ver arquivo
@@ -30,9 +30,9 @@ peer_kill(struct peer *p)
if (p->flags & PF_ON_WRITEQ)
BTPDQ_REMOVE(&net_bw_writeq, p, wq_entry);
close(p->sd);
btpd_ev_del(&p->in_ev);
btpd_ev_del(&p->out_ev);
close(p->sd);
nl = BTPDQ_FIRST(&p->outq);
while (nl != NULL) {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar