Skip to content

Commit

Permalink
Remove excess level check (was dealing with circular linked thing
Browse files Browse the repository at this point in the history
  • Loading branch information
serverdev committed Sep 30, 2024
1 parent 58f6980 commit b19ac2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/netlib/html5.websocket/json/jsox_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ) {
Expand Down

0 comments on commit b19ac2b

Please sign in to comment.