summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-09-02 16:01:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-09-02 16:01:15 -0700
commitd4c1baf93708ad4e90c556e6041a498dbffaaba0 (patch)
tree6d546caf8dc59c4ad5e38eea9a363356a8a1c63d /core/jni
parent604637b51c2c9d78b70440321d4a7056880935a5 (diff)
parent71c3c7806acb2b2b7b8441817c26a2101d447bbe (diff)
downloadframeworks_base-d4c1baf93708ad4e90c556e6041a498dbffaaba0.zip
frameworks_base-d4c1baf93708ad4e90c556e6041a498dbffaaba0.tar.gz
frameworks_base-d4c1baf93708ad4e90c556e6041a498dbffaaba0.tar.bz2
Merge change 23646 into eclair
* changes: Immediately destroy BluetoothSocket's on close().
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/android_bluetooth_BluetoothSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_bluetooth_BluetoothSocket.cpp b/core/jni/android_bluetooth_BluetoothSocket.cpp
index 0aeaadc..51cf0cb 100644
--- a/core/jni/android_bluetooth_BluetoothSocket.cpp
+++ b/core/jni/android_bluetooth_BluetoothSocket.cpp
@@ -468,7 +468,7 @@ static jint writeNative(JNIEnv *env, jobject obj, jbyteArray jb, jint offset,
return -1;
}
-static void closeNative(JNIEnv *env, jobject obj) {
+static void abortNative(JNIEnv *env, jobject obj) {
#ifdef HAVE_BLUETOOTH
LOGV(__FUNCTION__);
struct asocket *s = get_socketData(env, obj);
@@ -510,7 +510,7 @@ static JNINativeMethod sMethods[] = {
{"availableNative", "()I", (void *) availableNative},
{"readNative", "([BII)I", (void *) readNative},
{"writeNative", "([BII)I", (void *) writeNative},
- {"closeNative", "()V", (void *) closeNative},
+ {"abortNative", "()V", (void *) abortNative},
{"destroyNative", "()V", (void *) destroyNative},
};