Project

General

Profile

Revision 198

Recharging updated.

View differences:

wl_token_ring.c
324 324
{
325 325
	int i, j;
326 326

  
327
	// this prevents two tokens from being passed around at a time
328
	if (source != wl_token_next_robot && bom_on_count <= DEATH_DELAY / 2)
327
	// this prevents two tokens from being passed around at a time (second clause is in case we are joining)
328
	if (source != wl_token_next_robot && bom_on_count <= DEATH_DELAY / 2 &&
329
		ringState != ACCEPTED)
329 330
	{
330 331
		WL_DEBUG_PRINT("Received token pass when a robot should not have died yet.\n");
331 332
		WL_DEBUG_PRINT("There are probably two tokens going around, packet ignored.\n");

Also available in: Unified diff