1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-05 20:43:08 +00:00

; * lib-src/emacsclient.c (main): Fix previous change.

This commit is contained in:
Stefan Kangas 2022-09-07 02:59:50 +02:00
parent e09872ccb3
commit ca0a8b554a

View 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",