From 3e5d0295ea38c1d31b9acabb2ff45f492d40cafc Mon Sep 17 00:00:00 2001 From: nandika Date: Thu, 18 Feb 2010 15:19:57 +0000 Subject: disengage_module method updated for svc git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@911436 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/description/svc.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src') diff --git a/src/core/description/svc.c b/src/core/description/svc.c index 72f4597..84f7f35 100644 --- a/src/core/description/svc.c +++ b/src/core/description/svc.c @@ -1039,6 +1039,31 @@ axis2_svc_disengage_module( return AXIS2_FAILURE; } status = axis2_phase_resolver_disengage_module_from_svc(phase_resolver, env, svc, module_desc); + if(status == AXIS2_SUCCESS) + { + /** Remove this module from the engaged modules list */ + axutil_qname_t *mod_qname = NULL; + int i = 0, size = 0; + + mod_qname = axis2_module_desc_get_qname(module_desc, env); + + size = axutil_array_list_size(svc->engaged_module_list, env); + for(i = 0; i < size; i++) + { + const axutil_qname_t *module_qname_l = NULL; + axis2_module_desc_t *module_desc_l = NULL; + + module_desc_l = (axis2_module_desc_t *)axutil_array_list_get(svc->engaged_module_list, env, + i); + module_qname_l = axis2_module_desc_get_qname(module_desc_l, env); + + if(axutil_qname_equals(mod_qname, env, module_qname_l)) + { + axutil_array_list_remove(svc->engaged_module_list, env, i); + break; + } + } + } axis2_phase_resolver_free(phase_resolver, env); -- cgit v1.1-32-gdbae