From 32852b931d8828755db3b0b8c7bafb512eea2cce Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Tue, 12 Jun 2012 14:58:58 +0200 Subject: [PATCH] Change the way the flag is handled in smx_ctx_java_stop --- src/smx_context_java.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smx_context_java.c b/src/smx_context_java.c index a68ebea770..91a3b93114 100644 --- a/src/smx_context_java.c +++ b/src/smx_context_java.c @@ -138,7 +138,7 @@ void smx_ctx_java_stop(smx_context_t context) { smx_ctx_java_t ctx_java = (smx_ctx_java_t)context; /* I am the current process and I am dying */ - 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 :)")); -- 2.20.1