OSDN Git Service

Avoid starting multiple threads in ShutdownThread
authorMike Lockwood <lockwood@android.com>
Mon, 26 Jul 2010 11:18:21 +0000 (07:18 -0400)
committerMike Lockwood <lockwood@android.com>
Mon, 26 Jul 2010 11:27:23 +0000 (07:27 -0400)
commitd67b236497d87223e8373d96c274c97cfbcab0cb
tree7d45bd9501cc21904ec874994148e30c5efcdad6
parent14bfa398a4e8697ce5822861a684b7d1245e4a85
Avoid starting multiple threads in ShutdownThread

The previous code allowed this to happen if a second call to shutdown
happened while the dialog was being displayed.

BUG: 2563243

Change-Id: I93adc4ef316917a79002d580b17eda0dc354704c
Signed-off-by: Mike Lockwood <lockwood@android.com>
core/java/com/android/internal/app/ShutdownThread.java