From 3ab33f728f61b12f85a6067d02610c2b5142a4a5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 24 Feb 2012 14:51:15 +0100 Subject: Fix crash. Hold queue for each client connection. --- src/muniad.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/muniad.cc') diff --git a/src/muniad.cc b/src/muniad.cc index 82311e7..ef76ff1 100644 --- a/src/muniad.cc +++ b/src/muniad.cc @@ -110,8 +110,7 @@ int main(int argc, char **argv) } } - if (!use_ssl) - cert_path = key_path = NULL; + if(!use_ssl) cert_path = key_path = NULL; context = libwebsocket_create_context(port, interface, protocols, libwebsocket_internal_extensions, @@ -121,7 +120,9 @@ int main(int argc, char **argv) return -1; } - while (1) libwebsocket_service(context, 50); + while (1) { + libwebsocket_service(context, 50); + } libwebsocket_context_destroy(context); -- cgit v1.2.3