Sfoglia il codice sorgente

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
Steven Dake 21 anni fa
parent
commit
f6c49d8d06
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      exec/amf.c

+ 2 - 2
exec/amf.c

@@ -634,7 +634,7 @@ void haStateSetApi (struct saAmfComponent *component, SaAmfHAStateT haState)
 	/*
 	/*
 	 * this should be an assertion
 	 * 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) {
 		component->conn_info->service != SOCKET_SERVICE_AMF) {
 		return;
 		return;
 	}
 	}
@@ -730,7 +730,7 @@ void readinessStateSetApi (struct saAmfComponent *component,
 	/*
 	/*
 	 * this should be an assertion
 	 * 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) {
 		component->conn_info->service != SOCKET_SERVICE_AMF) {
 
 
 		return;
 		return;