From 2be7a7468d72e4ff321161f67a4b7c39e0aa6968 Mon Sep 17 00:00:00 2001 From: Steve Wise Date: Fri, 7 Apr 2006 17:59:35 +0000 Subject: [PATCH] r6319: Handle the case on the server side where the first RECV completion happens before the connect ESTABLISHED event. Signed-off-by: Steve Wise --- examples/rping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rping.c b/examples/rping.c index 1102aa73..bf78dec1 100644 --- a/examples/rping.c +++ b/examples/rping.c @@ -326,7 +326,7 @@ static int rping_accept(struct rping_cb *cb) } sem_wait(&cb->sem); - if (cb->state != CONNECTED) { + if (cb->state == ERROR) { fprintf(stderr, "wait for CONNECTED state %d\n", cb->state); return -1; } -- 2.46.0