summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qarsh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/qarsh.c b/qarsh.c
index de963fb..404a7fa 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -285,16 +285,14 @@ run_remote_cmd(char *cmdline)
&pselect_sigmask);
if (nset == 0) {
+ if (cmd_finished) break;
+
if (!hbeat(qarsh_hb)) {
/* Set our return packet as NULL so we exit
* with unknown error. */
qp = NULL;
break;
}
-
- if (cmd_finished) {
- break;
- }
continue;
}