Commits

Robert Lowry committed cd12f95

broke infinite loops

  • Participants
  • Parent commits e2374a8

Comments (0)

Files changed (1)

 	Watch *cur = w;
 	do {
 		cur = (cur->next ? cur->next : watch);
+		if(cur == w) break;
 	} while (!cur->active);
 	return cur;
 }
 	Watch *cur = w;
 	do {
 		cur = (cur->prev ? cur->prev : lastwatch);
+		if (cur == w) break;
 	} while (!cur->active);
 	return cur;
 }