Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove unused declarations
[simgrid.git] / src / mc / Client.cpp
index 9fc8688..c05696f 100644 (file)
@@ -156,10 +156,10 @@ void Client::handleMessages()
 void Client::mainLoop(void)
 {
   while (1) {
+    simgrid::mc::wait_for_requests();
     if (channel_.send(MC_MESSAGE_WAITING))
       xbt_die("Could not send WAITING mesage to model-checker");
     this->handleMessages();
-    simgrid::mc::wait_for_requests();
   }
 }