celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject svn commit: r1633714 - /celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
Date Wed, 22 Oct 2014 20:33:56 GMT
Author: bpetri
Date: Wed Oct 22 20:33:56 2014
New Revision: 1633714

URL: http://svn.apache.org/r1633714
Log:
CELIX-173: add mg_stop call

Modified:
    celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c

Modified: celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
URL: http://svn.apache.org/viewvc/celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c?rev=1633714&r1=1633713&r2=1633714&view=diff
==============================================================================
--- celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
(original)
+++ celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
Wed Oct 22 20:33:56 2014
@@ -202,6 +202,12 @@ celix_status_t remoteServiceAdmin_stop(r
     }
     hashMapIterator_destroy(iter);
 
+	if (admin->ctx != NULL) {
+		fw_log(logger, OSGI_FRAMEWORK_LOG_INFO, "RSA: Stopping webserver...");
+		mg_stop(admin->ctx);
+		admin->ctx = NULL;
+	}
+
 	return status;
 }
 



Mime
View raw message