summaryrefslogtreecommitdiff
path: root/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestController.java
diff options
context:
space:
mode:
authorJason Simmons <jsimmons@google.com>2012-05-03 19:46:01 -0700
committerJason Simmons <jsimmons@google.com>2012-05-03 19:46:01 -0700
commit34b2feb041e263e11bbcec1f2a5094e21be9dc13 (patch)
tree06a21e166fa8c159addcf4cafa355be2cc6ca10d /tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestController.java
parente7d85994cbc78e62cfe6996daffda255103a8fea (diff)
Avoid calling BluetoothSocket.destroyNative twice
If the destroyNative JNI method is called twice, it will attempt to free the socketData twice, and the second free will cause an assertion failure. To avoid this, check whether mSocketState has already been set to CLOSED while holding the write lock. If it has, then destroyNative has already been called and should not be called again. Bug: 3096033 Change-Id: Ic7c0bbf21823d389b26919da8c533d8ac4d49064
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestController.java')
0 files changed, 0 insertions, 0 deletions