handleHandshakeMsg check we're part of a new state before adding it

This commit is contained in:
NicolasCantu 2025-03-26 14:40:41 +01:00
parent f2e2aeaa9a
commit a0888f8c90

View File

@ -1284,10 +1284,12 @@ export default class Services {
for (const state of process.states) {
if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; }
if (!this.lookForStateId(existing, state.state_id)) {
if (this.rolesContainsUs(state.roles)) {
new_states.push(state.state_id);
roles.push(state.roles);
}
}
}
if (new_states.length != 0) {
// We request the new states