本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
Immanuel
/
btpd
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
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 年之前
父節點
45ceb46c42
當前提交
7ce1098dff
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
btpd/peer.c
+ 1
- 1
btpd/peer.c
查看文件
@@ -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) {
Write
Preview
Loading…
取消
儲存