diff --git a/src/ckdb.c b/src/ckdb.c index f5a14973..9489a80f 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -4006,9 +4006,8 @@ static void *clistener(__maybe_unused void *arg) if (wq_item) { process_sockd(conn, wq_item); tick(); - } - - cksleep_ms(42); + } else + cksleep_ms(42); } clistener_using_data = false; @@ -4048,9 +4047,8 @@ static void *blistener(__maybe_unused void *arg) if (wq_item) { process_sockd(conn, wq_item); tick(); - } - - cksleep_ms(142); + } else + cksleep_ms(142); } blistener_using_data = false; diff --git a/src/ckdb.h b/src/ckdb.h index f002780a..f0f69765 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.4" -#define CKDB_VERSION DB_VERSION"-1.701" +#define CKDB_VERSION DB_VERSION"-1.702" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__