am 8217eac0: Merge "Fix double-checked locking bug in LocalSocket." into gingerbread

Merge commit '8217eac0a0b6d394139eefa85d5f467240427e98' into gingerbread-plus-aosp

* commit '8217eac0a0b6d394139eefa85d5f467240427e98':
  Fix double-checked locking bug in LocalSocket.
This commit is contained in:
Jesse Wilson
2010-09-21 10:33:53 -07:00
committed by Android Git Automerger

View File

@@ -70,8 +70,11 @@ public class LocalSocket {
if (!implCreated) {
synchronized (this) {
if (!implCreated) {
implCreated = true;
impl.create(true);
try {
impl.create(true);
} finally {
implCreated = true;
}
}
}
}