Skip to content

Commit 2e24bf9

Browse files
committed
This node possesses the token, and therefore must retain it unchanged.
The resolution of this translation error took approximately 15 minutes and required the execution of the code using a debugger. [Bug]
1 parent 0d341ee commit 2e24bf9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

specifications/ewd998/impl/src/EWD998.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ public EWD998(final Map<Integer, Pair> nodes, final int myId, final boolean isIn
224224
color = Color.white;
225225

226226
tokenColor = null;
227+
} else {
228+
// This node owns the token and is active; keep the unchanged token.
229+
/*
230+
Deactivate(i) ==
231+
/\ ...
232+
/\ UNCHANGED <<..., token>>
233+
SendMsg(i) ==
234+
/\ ...
235+
/\ UNCHANGED <<..., token>>
236+
RecvMsg(i) ==
237+
/\ ...
238+
/\ UNCHANGED <<token>>
239+
*/
240+
inbox.add(msg);
227241
}
228242
}
229243
}

0 commit comments

Comments
 (0)