fix ctrl-c in win32
[olsrd.git] / src / scheduler.c
index eae4d85..068643b 100644 (file)
@@ -490,6 +490,13 @@ olsr_scheduler(void)
 
     /* Read incoming data and handle it immediiately */
     handle_fds(next_interval);
+
+#ifdef WIN32
+    if (olsr_win32_end_request) {
+      olsr_win32_end_flag = true;
+      break;
+    }
+#endif
   }
 }