Switch io_close(), io_input() from timeouts to deadlines
All users want deadlines. Move the conversion from deadline to timeout from callers to io.c, where it becoems an implementation detail.
This commit is contained in:
parent
10768189e2
commit
ddbcce12c3
5 changed files with 26 additions and 21 deletions
|
@ -61,7 +61,6 @@ int
|
|||
recvclient(char *cmd, int size)
|
||||
{
|
||||
int count, res;
|
||||
struct timeval timeout;
|
||||
|
||||
count = -1;
|
||||
while (!player->aborted) {
|
||||
|
@ -92,8 +91,7 @@ recvclient(char *cmd, int size)
|
|||
if (player->aborted)
|
||||
break;
|
||||
|
||||
io_timeout(&timeout, player->curup + minutes(max_idle));
|
||||
res = io_input(player->iop, &timeout);
|
||||
res = io_input(player->iop, player->curup + minutes(max_idle));
|
||||
if (res > 0)
|
||||
;
|
||||
else if (res < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue