From 395fc60517f70f6ae087e6919b1463f35bb54db8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 Mar 2012 11:02:30 +0200 Subject: Remove init code. --- src/task_proto.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/task_proto.cc') diff --git a/src/task_proto.cc b/src/task_proto.cc index ced0552..d273344 100644 --- a/src/task_proto.cc +++ b/src/task_proto.cc @@ -75,7 +75,7 @@ static void dump_handshake_info(struct lws_tokens *lwst) } } -std::map > msgqueue; +static std::map > msgqueue; int callback_lws_task(struct libwebsocket_context * context, struct libwebsocket *wsi, @@ -93,6 +93,7 @@ int callback_lws_task(struct libwebsocket_context * context, fprintf(stderr, "callback_lws_task: LWS_CALLBACK_ESTABLISHED\n"); // pss->ringbuffer_tail = ringbuffer_head; pss->wsi = wsi; + /* // send all current tasks // char buf[512]; @@ -115,6 +116,7 @@ int callback_lws_task(struct libwebsocket_context * context, msgqueue[wsi].push(msg); libwebsocket_callback_on_writable(context, wsi); + */ } break; @@ -123,6 +125,7 @@ int callback_lws_task(struct libwebsocket_context * context, printf("Closing connection\n"); msgqueue.erase(wsi); } + break; case LWS_CALLBACK_SERVER_WRITEABLE: { -- cgit v1.2.3