Refactor to avoid more static variables
[pazpar2-moved-to-github.git] / src / http_command.c
index da9771e..73a8b1f 100644 (file)
@@ -237,7 +237,7 @@ static int process_settings(struct session *se, struct http_request *rq,
 static void cmd_exit(struct http_channel *c)
 {
     yaz_log(YLOG_WARN, "exit");
-    http_close_server();
+    http_close_server(c->server);
 }
 
 static void cmd_init(struct http_channel *c)