瀏覽代碼

Missed to update peer->nreqs_out at a couple of places.

master
Richard Nyberg 19 年之前
父節點
當前提交
5169d5a862
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. +1
    -0
      btpd/peer.c
  2. +1
    -0
      btpd/policy_subr.c

+ 1
- 0
btpd/peer.c 查看文件

@@ -92,6 +92,7 @@ again:
net_send_cancel(p, req);
BTPDQ_REMOVE(&p->my_reqs, req, entry);
free(req);
p->nreqs_out--;
goto again;
}
}


+ 1
- 0
btpd/policy_subr.c 查看文件

@@ -443,6 +443,7 @@ cm_unassign_requests(struct peer *p)
}

assert(BTPDQ_EMPTY(&p->my_reqs));
p->nreqs_out = 0;
}




Loading…
取消
儲存