Merge "Fix double-checked locking bug in LocalSocket." into gingerbread

This commit is contained in:
Jesse Wilson
2010-09-21 10:30:39 -07:00
committed by Android (Google) Code Review

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;
}
}
}
}