diff --git a/lib/modules/Stdio.pmod/module.pmod b/lib/modules/Stdio.pmod/module.pmod index 4a7d4419332da19bb75add9598d859f97be980a8..37e6a494fa1fe43bd4529dcab6dfcb2d9f719f4b 100644 --- a/lib/modules/Stdio.pmod/module.pmod +++ b/lib/modules/Stdio.pmod/module.pmod @@ -3454,13 +3454,6 @@ protected class nb_sendfile } tr = 0; } - - if (!hd || !sizeof(hd - ({ "" }))) { - // NOOP! - SF_WERR("NOOP!"); - backend->call_out(cb, 0, 0, @a); - return; - } } if (hd) @@ -3497,7 +3490,7 @@ protected class nb_sendfile blocking_from = from->is_file || ((!from->set_nonblocking) || (from->mode && !(from->mode() & PROP_NONBLOCK))); - + if (off >= 0) { from->seek(off); } @@ -3525,12 +3518,8 @@ protected class nb_sendfile if (blocking_from) { SF_WERR("Reading some data."); do_read(); - if (!sizeof(to_write)) { - SF_WERR("NOOP!"); - backend->call_out(cb, 0, 0, @args); - } } - if (sizeof(to_write)) { + if (!from || sizeof(to_write)) { SF_WERR("Starting the writer."); start_writer(); }