Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Three new routing schema by Silas De Munck
[simgrid.git] / src / surf / network.c
index e7292f1..767a0c5 100644 (file)
@@ -415,6 +415,10 @@ static surf_action_t communicate(const char *src_name, const char *dst_name,int
   /* LARGE PLATFORMS HACK:
      expand also with src->link and dst->link */
 
+  /* Cleanup route if required */
+  if(used_routing->finalize_route)
+    used_routing->finalize_route(route);
+
   XBT_OUT;
 
   return (surf_action_t) action;