From d93bed560c80e861bb2d7b58ff5ff07ad92a6020 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Sun, 24 Oct 2021 15:24:41 +0200 Subject: [PATCH] Fix bug causing connections not to be updated next_connections_dump was decremented by a wrong count, which could cause it to wrap. When this occurred, connections in the GUI where not updated anymore (new connections not shown, old connections not updated) --- app/src/main/jni/vpnproxy-jni/vpnproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/jni/vpnproxy-jni/vpnproxy.c b/app/src/main/jni/vpnproxy-jni/vpnproxy.c index c65b23c4..219f1895 100644 --- a/app/src/main/jni/vpnproxy-jni/vpnproxy.c +++ b/app/src/main/jni/vpnproxy-jni/vpnproxy.c @@ -375,7 +375,7 @@ conn_data_t* new_connection(vpnproxy_data_t *proxy, const zdtun_5tuple_t *tuple, // If all the netd connections have been resolved, remove the dump delay if((--netd_resolve_waiting) == 0) { log_d("Removing netd resolution delay"); - next_connections_dump -= proxy->now_ms; + next_connections_dump -= NETD_RESOLVE_DELAY_MS; } } }