mirror of
https://github.com/hufrea/byedpi.git
synced 2025-06-30 02:31:15 +00:00
Fix desync of split request
This commit is contained in:
parent
4fbef41d2c
commit
624248789c
3
desync.c
3
desync.c
@ -570,7 +570,7 @@ ssize_t desync(struct poolhd *pool,
|
||||
ssize_t s = 0;
|
||||
|
||||
if (curr_part == part_skip) {
|
||||
;
|
||||
s = pos - lp;
|
||||
} else
|
||||
{
|
||||
switch (part.m) {
|
||||
@ -641,6 +641,7 @@ ssize_t desync(struct poolhd *pool,
|
||||
if (sock_has_notsent(sfd)
|
||||
|| (params.wait_send
|
||||
&& curr_part > part_skip)) {
|
||||
LOG(LOG_S, "sock_has_notsent\n");
|
||||
set_timer(pool, val, params.await_int);
|
||||
*wait = true;
|
||||
return pos - offset;
|
||||
|
Loading…
Reference in New Issue
Block a user