Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix in smx_context_cojava
[simgrid.git] / src / smx_context_cojava.c
index 66e1899..2905ece 100644 (file)
@@ -184,7 +184,7 @@ void smx_ctx_cojava_stop(smx_context_t context)
         * The java stack needs to be empty, otherwise weird stuff
         * will happen
         */
-       if (context->iwannadie == -1) {
+       if (context->iwannadie) {
        context->iwannadie = 0;
        JNIEnv *env = get_current_thread_env();
        jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", bprintf("Process killed :)"));