handleHandshakeMsg check we're part of a new state before adding it
This commit is contained in:
parent
f2e2aeaa9a
commit
a0888f8c90
@ -1284,8 +1284,10 @@ 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)) {
|
||||
new_states.push(state.state_id);
|
||||
roles.push(state.roles);
|
||||
if (this.rolesContainsUs(state.roles)) {
|
||||
new_states.push(state.state_id);
|
||||
roles.push(state.roles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user