diff options
| author | 2011-04-28 19:43:18 +0200 | |
|---|---|---|
| committer | 2011-04-28 19:43:18 +0200 | |
| commit | d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4 (patch) | |
| tree | 8f9d841908b25d946021fff570eeaca75667a4ab /tools | |
| parent | 8ecfbc77ccaaa0c017aae5d944efec47bd2c6171 (diff) | |
| download | libimobiledevice-d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4.tar.gz libimobiledevice-d9d8fc2f9f90fdd77c971e45c3be8e9b0548e9d4.tar.bz2 | |
idevicebackup2: Only post "sync finished" notification if we sent "sync start" earlier
Diffstat (limited to 'tools')
| -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: | |||
| 1706 | afc_file_lock(afc, lockfile, AFC_LOCK_UN); | 1706 | afc_file_lock(afc, lockfile, AFC_LOCK_UN); |
| 1707 | afc_file_close(afc, lockfile); | 1707 | afc_file_close(afc, lockfile); |
| 1708 | lockfile = 0; | 1708 | lockfile = 0; |
| 1709 | do_post_notification(NP_SYNC_DID_FINISH); | 1709 | if (cmd == CMD_BACKUP) |
| 1710 | do_post_notification(NP_SYNC_DID_FINISH); | ||
| 1710 | } | 1711 | } |
| 1711 | } else { | 1712 | } else { |
| 1712 | printf("ERROR: Could not start service %s.\n", MOBILEBACKUP2_SERVICE_NAME); | 1713 | printf("ERROR: Could not start service %s.\n", MOBILEBACKUP2_SERVICE_NAME); |
