summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 6c2908d6d5..20569d858c 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2263,7 +2263,7 @@ static void smbd_server_connection_read_handler(
if (from_client) {
smbd_lock_socket(conn);
- if (!fd_is_readable(fd)) {
+ if (lp_async_smb_echo_handler() && !fd_is_readable(fd)) {
DEBUG(10,("the echo listener was faster\n"));
smbd_unlock_socket(conn);
return;