Mercurial > dovecot > core-2.2
changeset 15592:0949ddc3a892
dsync: Minor fix for talking with remote dsync.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 08 Jan 2013 06:41:56 +0200 |
parents | a7be0c9a00df |
children | e0d4d8f9d097 |
files | src/doveadm/dsync/dsync-ibc-stream.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-ibc-stream.c Tue Jan 08 05:23:06 2013 +0200 +++ b/src/doveadm/dsync/dsync-ibc-stream.c Tue Jan 08 06:41:56 2013 +0200 @@ -331,8 +331,7 @@ } /* try reading some */ - switch (i_stream_read(ibc->input)) { - case -1: + if (i_stream_read(ibc->input) == -1) { if (ibc->input->stream_errno != 0) { errno = ibc->input->stream_errno; i_error("read(%s) failed: %m", ibc->name); @@ -342,8 +341,6 @@ } dsync_ibc_stream_stop(ibc); return -1; - case 0: - return 0; } *line_r = i_stream_next_line(ibc->input); if (*line_r == NULL) {