Don't attach to actual Java threads (or already attached ones)
authorTobias Brunner <tobias@strongswan.org>
Tue, 7 Aug 2012 11:34:44 +0000 (13:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Aug 2012 09:00:25 +0000 (11:00 +0200)
commit95e9a12c2898f74486275b1031dc70dc2cb2f998
treed586e337d0ba912961f5270857fbd25068f5361b
parent5afb1e3c4521990e3cffc33f7a7371cf32967c62
Don't attach to actual Java threads (or already attached ones)

We check this by trying to retrieve a JNIEnv object from the JVM,
if one is returned the current thread is not native (created from Java)
or the thread is already attached.
src/frontends/android/jni/libandroidbridge/android_jni.c