Skip to content

Commit

Permalink
fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Apr 11, 2024
1 parent bbb1dcf commit 63725cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tunnels/client/reverse/reverse_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion tunnels/server/reverse/reverse_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63725cf

Please sign in to comment.