fixed a deadlock problem
[charm.git] / src / arch / gemini_gni / machine.c
index 2715807cf4950ad3e83c03a87dbd31e3b530322d..625d2d306da471d9cb01485fc5d5edc129c2329d 100644 (file)
@@ -669,10 +669,9 @@ static gni_return_t send_smsg_message(int destNode, void *header, int size_heade
 #endif
             return status;
         }
-    }else {
-        if(inbuff ==0)
-            delay_send_small_msg(msg, size, destNode, tag);
     }
+    if(inbuff ==0)
+        delay_send_small_msg(msg, size, destNode, tag);
     return status;
 }