Small bug, causing infinite loops
diff --git a/src/dispatcher.cc b/src/dispatcher.cc
index ad88aed..63e0937 100644
--- a/src/dispatcher.cc
+++ b/src/dispatcher.cc
@@ -216,7 +216,7 @@
   int size = stateMsg->state_size();
   int index = 0;
   // iterate and fetch the actions
-  while (index < size)
+  for (; index < size; index++)
   {
     SyncState state = stateMsg->state (index);
     if (state.has_old_seq() && state.has_seq())