diff options
Diffstat (limited to 'source3/smbd/conn.c')
-rw-r--r-- | source3/smbd/conn.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index afb7a7fa85..707f6c4aa1 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -213,7 +213,6 @@ bool conn_close_all(struct smbd_server_connection *sconn) bool conn_idle_all(struct smbd_server_connection *sconn,time_t t) { int deadtime = lp_deadtime()*60; - pipes_struct *plist = NULL; connection_struct *conn; if (deadtime <= 0) @@ -243,14 +242,10 @@ bool conn_idle_all(struct smbd_server_connection *sconn,time_t t) * Check all pipes for any open handles. We cannot * idle with a handle open. */ - - for (plist = get_first_internal_pipe(); plist; - plist = get_next_internal_pipe(plist)) { - if (num_pipe_handles(plist->pipe_handles) != 0) { - return False; - } + if (check_open_pipes()) { + return False; } - + return True; } |