Added SILC_FSM_YIELD.
[crypto.git] / lib / silcutil / silcfsm.c
index 863516dadd9ac53a40a97ac11ba98d52741a264e..7a0bf4ac100bcb2a3585d0a68679080114fd3c31 100644 (file)
@@ -343,6 +343,11 @@ SILC_TASK_CALLBACK(silc_fsm_run)
   while (status == SILC_FSM_CONTINUE);
 
   switch (status) {
+  case SILC_FSM_YIELD:
+    /* Continue through scheduler */
+    silc_fsm_continue(fsm);
+    break;
+
   case SILC_FSM_WAIT:
     /* The machine is in hold */
     SILC_LOG_DEBUG(("State wait %p", fsm));