diff options
-rw-r--r-- | source4/smbd/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smbd/service.c b/source4/smbd/service.c index 2b6e0579fa4..52ff088db35 100644 --- a/source4/smbd/service.c +++ b/source4/smbd/service.c @@ -182,14 +182,14 @@ void server_io_handler(struct event_context *ev, struct fd_event *fde, time_t t, { struct server_connection *conn = fde->private; + conn->event.idle->next_event = t + conn->event.idle_time; + if (flags & EVENT_FD_WRITE) { conn->service->ops->send_handler(conn, t, flags); - conn->event.idle->next_event = t + conn->event.idle_time; } if (flags & EVENT_FD_READ) { conn->service->ops->recv_handler(conn, t, flags); - conn->event.idle->next_event = t + conn->event.idle_time; } } |