bugfix delete_kernel_routes win32
authorGabriela Botea <gabriela.botea@gmail.com>
Sat, 7 May 2011 09:12:13 +0000 (12:12 +0300)
committerGabriela Botea <gabriela.botea@gmail.com>
Sat, 7 May 2011 09:12:13 +0000 (12:12 +0300)
src/main.c
src/scheduler.c

index 1178205..97310d7 100644 (file)
@@ -718,7 +718,7 @@ static void olsr_shutdown(int signo __attribute__ ((unused)))
   olsr_win32_end_request = TRUE;
 
   while (!olsr_win32_end_flag)
-  Sleep(100);
+  sleep(1);
 
   OLSR_PRINTF(1, "Scheduler stopped.\n");
 #endif
index 068643b..4932efc 100644 (file)
@@ -494,7 +494,6 @@ olsr_scheduler(void)
 #ifdef WIN32
     if (olsr_win32_end_request) {
       olsr_win32_end_flag = true;
-      break;
     }
 #endif
   }