summaryrefslogtreecommitdiff
path: root/src/s_bsd_poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_bsd_poll.c')
-rw-r--r--src/s_bsd_poll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s_bsd_poll.c b/src/s_bsd_poll.c
index fbbc5c0..f33af38 100644
--- a/src/s_bsd_poll.c
+++ b/src/s_bsd_poll.c
@@ -112,7 +112,11 @@ comm_setselect(fde_t *F, unsigned int type, PF *handler,
(F->write_handler ? POLLWRNORM : 0);
if (timeout != 0)
+ {
F->timeout = CurrentTime + (timeout / 1000);
+ F->timeout_handler = handler;
+ F->timeout_data = client_data;
+ }
if (new_events != F->evcache)
{