aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c
index 31e8b86..e7fc4d4 100644
--- a/src/mds-echo.c
+++ b/src/mds-echo.c
@@ -233,8 +233,8 @@ int master_loop(void)
}
else if (errno == EINTR)
continue;
- else if (errno != ECONNRESET)
- goto pfail;
+ else
+ fail_if (errno != ECONNRESET);
eprint("lost connection to server.");
mds_message_destroy(&received);