From f6c49d8d06c9677bcdaf56362ecdb1f3c704ce77 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 23 Aug 2004 05:24:21 +0000 Subject: [PATCH] Use new connection enumeration with AMF code. (Logical change 1.58) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@198 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/amf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/amf.c b/exec/amf.c index 1d33f6a9..557761fd 100644 --- a/exec/amf.c +++ b/exec/amf.c @@ -634,7 +634,7 @@ void haStateSetApi (struct saAmfComponent *component, SaAmfHAStateT haState) /* * this should be an assertion */ - if (component->conn_info->active == 0 || + if (component->conn_info->state != CONN_STATE_ACTIVE || component->conn_info->service != SOCKET_SERVICE_AMF) { return; } @@ -730,7 +730,7 @@ void readinessStateSetApi (struct saAmfComponent *component, /* * this should be an assertion */ - if (component->conn_info->active == 0 || + if (component->conn_info->state != CONN_STATE_ACTIVE || component->conn_info->service != SOCKET_SERVICE_AMF) { return;