Skip to content

Commit

Permalink
Merge pull request #760 from openziti/do-not-try-to-bind-if-no-session
Browse files Browse the repository at this point in the history
do not try to bind if no session
  • Loading branch information
scareything authored Oct 22, 2024
2 parents f713dc6 + e73a30c commit a3d892a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ static void session_cb(ziti_session *session, const ziti_error *err, void *ctx)
conn->server.routers[idx++] = er;
}
model_list_clear(&session->edge_routers, NULL);
process_bindings(conn);
}
process_bindings(conn);

notify_status(conn, ZITI_OK);
break;
Expand Down Expand Up @@ -250,7 +250,9 @@ static void list_routers_cb(ziti_service_routers *srv_routers, const ziti_error
}
free(srv_routers);

process_bindings(conn);
if (conn->server.token != NULL) {
process_bindings(conn);
}
}

static void get_service_cb(ziti_context ztx, const ziti_service *service, int status, void *ctx) {
Expand Down

0 comments on commit a3d892a

Please sign in to comment.