mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
debugger_dap: Fix a bug that seq of outgoing messages was not increasing
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ cJSON *create_source(const char *name) {
|
||||
static void send_json(cJSON *json) {
|
||||
static int seq = 0;
|
||||
|
||||
cJSON_AddNumberToObject(json, "seq", seq);
|
||||
cJSON_AddNumberToObject(json, "seq", ++seq);
|
||||
char *str = cJSON_PrintUnformatted(json);
|
||||
printf("Content-Length: %zu\r\n\r\n%s", strlen(str), str);
|
||||
fflush(stdout);
|
||||
|
||||
Reference in New Issue
Block a user