Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not try to bind if no session #760

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading