Skip to content

Commit 50ce672

Browse files
committed
ci: add lgtm
1 parent 93fa528 commit 50ce672

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.lgtm.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extraction:
2+
cpp:
3+
index: # Customizable step used by all languages.
4+
build_command:
5+
- make build-nif

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ REBAR := rebar3
33
.PHONY: all
44
all: compile
55

6+
.PHONY: default
7+
default: build-nif
8+
9+
build-nif:
10+
./get-msquic.sh v2.0.1
11+
cmake -B c_build
12+
make -j `nproc` -C c_build
13+
614
compile:
715
$(REBAR) compile
816

c_src/quicer_queue.c

-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ set_owner_recv_mode(ACCEPTOR *owner, ErlNifEnv *env, ERL_NIF_TERM term)
138138
{
139139
owner->active = ACCEPTOR_RECV_MODE_MULTI;
140140
owner->active_count += i;
141-
if (owner->active_count < 0)
142-
owner->active_count = 0;
143141
if (owner->active_count == 0)
144142
owner->active = ACCEPTOR_RECV_MODE_PASSIVE;
145143
}

0 commit comments

Comments
 (0)