diff options
Diffstat (limited to '')
-rw-r--r-- | src/mds-echo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c index e7fc4d4..4cbaabb 100644 --- a/src/mds-echo.c +++ b/src/mds-echo.c @@ -229,7 +229,7 @@ int master_loop(void) if (r == -2) { eprint("corrupt message received, aborting."); - goto fail; + goto done; } else if (errno == EINTR) continue; @@ -240,16 +240,15 @@ int master_loop(void) mds_message_destroy(&received); mds_message_initialise(&received); connected = 0; - if (reconnect_to_display()) - goto fail; + fail_if (reconnect_to_display()); connected = 1; } rc = 0; - goto fail; + goto done; pfail: xperror(*argv); - fail: + done: if (rc || !reexecing) mds_message_destroy(&received); free(echo_buffer); |