summaryrefslogtreecommitdiffstats
path: root/cmds/bmgr
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-08-07 11:39:55 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-08-07 11:39:55 -0700
commit02d34e78f4de20fc05831c22a771fffc645c5953 (patch)
treeb2fb757e96d03f491ec8ef4abafd6094c6c9e58a /cmds/bmgr
parent03a97462003a1df679144edeee921112d8925133 (diff)
parent08e40b858e8a3266c5519a83fda6f7505f1c14db (diff)
downloadframeworks_base-02d34e78f4de20fc05831c22a771fffc645c5953.zip
frameworks_base-02d34e78f4de20fc05831c22a771fffc645c5953.tar.gz
frameworks_base-02d34e78f4de20fc05831c22a771fffc645c5953.tar.bz2
Merge change 20439
* changes: Fix Bmgr's logic around restore completion
Diffstat (limited to 'cmds/bmgr')
-rw-r--r--cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
index ee3ec1a..027c367 100644
--- a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
+++ b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
@@ -327,21 +327,24 @@ public final class Bmgr {
printRestoreSets(sets);
}
}
+
+ // now wait for it to be done
+ synchronized (observer) {
+ while (!observer.done) {
+ try {
+ observer.wait();
+ } catch (InterruptedException ex) {
+ }
+ }
+ }
+
+ // once the restore has finished, close down the session and we're done
mRestore.endRestoreSession();
} catch (RemoteException e) {
System.err.println(e.toString());
System.err.println(BMGR_NOT_RUNNING_ERR);
}
- // now wait for it to be done
- synchronized (observer) {
- while (!observer.done) {
- try {
- observer.wait();
- } catch (InterruptedException ex) {
- }
- }
- }
System.out.println("done");
}