From 63725cf0764e9a48bd40e0cdcb3c113dc8611119 Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:11:07 +0300 Subject: [PATCH] fix mistake --- tunnels/client/reverse/reverse_client.c | 2 +- tunnels/server/reverse/reverse_server.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tunnels/client/reverse/reverse_client.c b/tunnels/client/reverse/reverse_client.c index 5524eea9..9b104557 100644 --- a/tunnels/client/reverse/reverse_client.c +++ b/tunnels/client/reverse/reverse_client.c @@ -116,7 +116,6 @@ static inline void downStream(tunnel_t *self, context_t *c) context_t *fc = switchLine(c, ucstate->d); destroy_cstate(ucstate); self->dw->downStream(self->dw, fc); - initiateConnect(self, tid); } else { @@ -125,6 +124,7 @@ static inline void downStream(tunnel_t *self, context_t *c) state->unused_cons[tid] -= 1; LOGD("ReverseClient: disconnected, tid: %d unused: %u active: %d", tid, state->unused_cons[tid], atomic_load_explicit(&(state->reverse_cons), memory_order_relaxed)); + initiateConnect(self, tid); destroyContext(c); } diff --git a/tunnels/server/reverse/reverse_server.c b/tunnels/server/reverse/reverse_server.c index 5075d83f..0ddfba5b 100644 --- a/tunnels/server/reverse/reverse_server.c +++ b/tunnels/server/reverse/reverse_server.c @@ -178,7 +178,6 @@ static inline void downStream(tunnel_t *self, context_t *c) } else { - remove_connection_u(this_tb, ucstate); destroy_cstate(ucstate); destroyContext(c);