From 685c84ca21e79ae55e7d0bee0bf846f85819694d Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 13 Jul 2004 21:13:30 +0000 Subject: [PATCH] Let the client to wait a bit on startup so that it does not connect to the server before it being ready git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@284 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/ping/ping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ping/ping.c b/examples/ping/ping.c index 5724135eaa..05f99cbd30 100644 --- a/examples/ping/ping.c +++ b/examples/ping/ping.c @@ -162,8 +162,7 @@ int client(int argc,char *argv[]) { } INFO2("Launch client (server on %s:%d)",host,port); - if (!gras_if_RL()) - gras_sleep(5,0); /* Wait for the server to be setup */ + gras_sleep(5,0); /* Wait for the server to be setup */ if ((errcode=gras_socket_client(host,port,&(g->sock)))) { ERROR1("Client: Unable to connect to the server. Got %s", gras_error_name(errcode)); -- 2.20.1