]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lib-src/emacsclient.c (main): Fix previous change.
authorStefan Kangas <stefankangas@gmail.com>
Wed, 7 Sep 2022 00:59:50 +0000 (02:59 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 7 Sep 2022 01:00:14 +0000 (03:00 +0200)
lib-src/emacsclient.c

index 2e5d8d0cc2495b10447b3ce13b52f76a016b3941..9529b34725be3f88a5e9e60cd9f859acf6c42345 100644 (file)
@@ -2149,9 +2149,9 @@ main (int argc, char **argv)
          act_on_signals (emacs_socket);
          rl = recv (emacs_socket, string, BUFSIZ, 0);
          retry = check_socket_timeout (rl);
-         if (retry)
+         if (retry && !saw_response)
            {
-             if (timeout > 0 && !saw_response)
+             if (timeout > 0)
                {
                  /* Don't retry if we were given a --timeout flag.  */
                  fprintf (stderr, "\nServer not responding; timed out after %lu seconds",