aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/survey0/xrespond.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/survey0/xrespond.c')
-rw-r--r--src/protocol/survey0/xrespond.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/protocol/survey0/xrespond.c b/src/protocol/survey0/xrespond.c
index 65bd047e..73e541d3 100644
--- a/src/protocol/survey0/xrespond.c
+++ b/src/protocol/survey0/xrespond.c
@@ -273,13 +273,12 @@ xresp0_recv_cb(void *arg)
int hops;
int ttl;
- ttl = nni_atomic_get(&s->ttl);
-
if (nni_aio_result(p->aio_recv) != 0) {
nni_pipe_close(p->npipe);
return;
}
+ ttl = nni_atomic_get(&s->ttl);
msg = nni_aio_get_msg(p->aio_recv);
nni_aio_set_msg(p->aio_recv, NULL);
nni_msg_set_pipe(msg, p->id);