X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/92d021488ec06524f7ed6a527c39f2753f4a9fd2..e89a0fc094c1edc4382e1b218c7f3fd50676101d:/io.c diff --git a/io.c b/io.c index 6c2b220f..077e5033 100644 --- a/io.c +++ b/io.c @@ -173,8 +173,6 @@ static void check_timeout(BOOL allow_keepalive) if (!last_io_in) last_io_in = t; - if (!last_io_out) - last_io_out = t; chk = MAX(last_io_out, last_io_in); if (t - chk >= io_timeout) { @@ -1407,12 +1405,12 @@ static void read_a_msg(void) got_flist_entry_status(FES_REDO, val); break; case MSG_IO_ERROR: - if (msg_bytes != 4 || am_sender) + if (msg_bytes != 4) goto invalid_msg; val = raw_read_int(); iobuf.in_multiplexed = 1; io_error |= val; - if (!am_generator) + if (am_receiver) send_msg_int(MSG_IO_ERROR, val); break; case MSG_IO_TIMEOUT: