handleHandshakeMsg check we're part of a new state before adding it
This commit is contained in:
parent
f2e2aeaa9a
commit
a0888f8c90
@ -1284,10 +1284,12 @@ export default class Services {
|
|||||||
for (const state of process.states) {
|
for (const state of process.states) {
|
||||||
if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; }
|
if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; }
|
||||||
if (!this.lookForStateId(existing, state.state_id)) {
|
if (!this.lookForStateId(existing, state.state_id)) {
|
||||||
|
if (this.rolesContainsUs(state.roles)) {
|
||||||
new_states.push(state.state_id);
|
new_states.push(state.state_id);
|
||||||
roles.push(state.roles);
|
roles.push(state.roles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (new_states.length != 0) {
|
if (new_states.length != 0) {
|
||||||
// We request the new states
|
// We request the new states
|
||||||
|
Loading…
x
Reference in New Issue
Block a user