OSDN Git Service

Disable the Java subsystem when RFCOMM sockets are cleaned up
authorSharvil Nanavati <sharvil@google.com>
Wed, 6 Apr 2016 23:08:38 +0000 (16:08 -0700)
committerSharvil Nanavati <sharvil@google.com>
Wed, 6 Apr 2016 23:19:39 +0000 (23:19 +0000)
Change-Id: I33dfd2aa01d6f496bee151d5994872e04d25e469

btif/src/btif_sock_rfc.c

index a0091e3..cb22a5b 100644 (file)
@@ -130,6 +130,8 @@ void btsock_rfc_cleanup(void) {
   pth = -1;
   uid_set = NULL;
 
+  BTA_JvDisable();
+
   pthread_mutex_lock(&slot_lock);
   for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) {
     if (rfc_slots[i].id)