Bladeren bron

ncd: modules: socket: close: Fix completion order vs closing.
When we close, the effects of the close should have execution precedence over the completion of the close statement.
This makes sure that we don't go executing extra NCD statements that shouldn't be.

Ambroz Bizjak 11 jaren geleden
bovenliggende
commit
87791bc320
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      ncd/modules/socket.c

+ 3 - 3
ncd/modules/socket.c

@@ -906,11 +906,11 @@ static void close_func_new (void *vo, NCDModuleInst *i, const struct NCDModuleIn
         goto fail0;
         goto fail0;
     }
     }
     
     
-    // abort
-    connection_abort(con_inst);
-    
     // go up
     // go up
     NCDModuleInst_Backend_Up(i);
     NCDModuleInst_Backend_Up(i);
+    
+    // abort
+    connection_abort(con_inst);
     return;
     return;
     
     
 fail0:
 fail0: