From b19ac2b1b1f6dc89180a0f02e372d9e58027deb1 Mon Sep 17 00:00:00 2001 From: serverdev Date: Mon, 30 Sep 2024 05:22:30 +0000 Subject: [PATCH] Remove excess level check (was dealing with circular linked thing --- src/netlib/html5.websocket/json/jsox_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/netlib/html5.websocket/json/jsox_parser.c b/src/netlib/html5.websocket/json/jsox_parser.c index c2d0d6f7e..d69042371 100644 --- a/src/netlib/html5.websocket/json/jsox_parser.c +++ b/src/netlib/html5.websocket/json/jsox_parser.c @@ -2333,12 +2333,12 @@ const char *jsox_get_parse_buffer( struct jsox_parse_state *pState, const char * void _jsox_dispose_message( PDATALIST *msg_data ) { - static int level; + //static int level; struct jsox_value_container *val; INDEX idx; if( !msg_data ) return; - level++; - if( level > 100 ) DebugBreak(); + //level++; + //if( level > 100 ) DebugBreak(); DATA_FORALL( (*msg_data), idx, struct jsox_value_container*, val ) { // names and string buffers for JSON parsed values in a single buffer @@ -2360,7 +2360,7 @@ void _jsox_dispose_message( PDATALIST *msg_data ) msg_data[0] = NULL; DeleteFromSet( PDATALIST, jxpsd.dataLists, msg_data ); LeaveCriticalSec( &jxpsd.cs_states ); - level--; + //level--; } static uintptr_t jsox_FindDataList( void*p, uintptr_t psv ) {