mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- The timeout value passed to tsleep is in milliseconds and so_linger is in seconds so convert to milliseconds
svn path=/trunk/; revision=41632
This commit is contained in:
parent
689615967e
commit
9722b61095
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ soclose(so)
|
|||
goto drop;
|
||||
while (so->so_state & SS_ISCONNECTED) {
|
||||
error = tsleep((caddr_t)&so->so_timeo,
|
||||
PSOCK | PCATCH, netcls, so->so_linger);
|
||||
PSOCK | PCATCH, netcls, so->so_linger * 1000);
|
||||
if (error)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue