From e113d9da1540758e016d9f338859c2a838b454e7 Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Tue, 12 Jun 2012 15:22:49 +0200 Subject: [PATCH] Bugfix in smx_context_cojava --- src/smx_context_cojava.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smx_context_cojava.c b/src/smx_context_cojava.c index 66e189929c..2905ece3ef 100644 --- a/src/smx_context_cojava.c +++ b/src/smx_context_cojava.c @@ -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 :)")); -- 2.20.1