diff options
author | Martin Szulecki | 2011-04-28 19:43:18 +0200 |
---|---|---|
committer | Martin Szulecki | 2011-04-28 19:43:18 +0200 |
commit | d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4 (patch) | |
tree | 8f9d841908b25d946021fff570eeaca75667a4ab | |
parent | 8ecfbc77ccaaa0c017aae5d944efec47bd2c6171 (diff) | |
download | libimobiledevice-d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4.tar.gz libimobiledevice-d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4.tar.bz2 |
idevicebackup2: Only post "sync finished" notification if we sent "sync start" earlier
-rw-r--r-- | tools/idevicebackup2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 47dd4f2..006dd33 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -1706,7 +1706,8 @@ files_out: afc_file_lock(afc, lockfile, AFC_LOCK_UN); afc_file_close(afc, lockfile); lockfile = 0; - do_post_notification(NP_SYNC_DID_FINISH); + if (cmd == CMD_BACKUP) + do_post_notification(NP_SYNC_DID_FINISH); } } else { printf("ERROR: Could not start service %s.\n", MOBILEBACKUP2_SERVICE_NAME); |