}
msg_error_t rv = MSG_task_cancel(ptask);
- if (rv != MSG_OK)
- xbt_die("MSG_task_cancel() unexpectedly failed with error code %d. Please report this bug", rv);
+ xbt_assert(rv == MSG_OK, "MSG_task_cancel() unexpectedly failed with error code %d. Please report this bug", rv);
}
JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_execute(JNIEnv * env, jobject jtask)