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
|
@ -95,13 +95,11 @@ player_new(int s)
|
|||
struct player *
|
||||
player_delete(struct player *lp)
|
||||
{
|
||||
struct timeval timeout;
|
||||
struct player *back;
|
||||
|
||||
if (lp->iop) {
|
||||
/* it's a real player */
|
||||
io_timeout(&timeout, player->curup + minutes(max_idle));
|
||||
io_close(lp->iop, &timeout);
|
||||
io_close(lp->iop, player->curup + minutes(max_idle));
|
||||
lp->iop = NULL;
|
||||
}
|
||||
back = (struct player *)lp->queue.q_back;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue