This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 29092007
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit f2c9aa648d71fea18a4ad938bd1d060f7cbb9253
Author: Weerapurage Dinesh Premalal <[email protected]>
AuthorDate: Sun Oct 14 17:14:35 2007 +0000

    fixed, server value not checked while in shutdown process
---
 .../transport/http/server/simple_axis2_server/http_server_main.c    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/src/core/transport/http/server/simple_axis2_server/http_server_main.c 
b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
index e519ab9..23bb8c9 100644
--- a/src/core/transport/http/server/simple_axis2_server/http_server_main.c
+++ b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
@@ -237,7 +237,11 @@ sig_handler(
         {
             AXIS2_LOG_INFO(system_env->log, "Received signal SIGINT. Server "
                            "shutting down");
-            axis2_http_server_stop(server, system_env);
+            if (server)
+            {
+                axis2_http_server_stop(server, system_env);
+            }
+
             AXIS2_LOG_INFO(system_env->log, "Shutdown complete ...");
             system_exit(system_env, 0);
         }

Reply via email to