diff options
author | Nikias Bassen | 2014-03-01 17:13:06 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-03-01 17:13:06 +0100 |
commit | 440fdebcd2cdbc10e14ed08d38f9910c15bdac6b (patch) | |
tree | 679af61a1abc98879d989f778a4b42f7bd0ff41e | |
parent | 8837cf327d1ddefc86eba8c86da395b6db74c9ac (diff) | |
download | libimobiledevice-440fdebcd2cdbc10e14ed08d38f9910c15bdac6b.tar.gz libimobiledevice-440fdebcd2cdbc10e14ed08d38f9910c15bdac6b.tar.bz2 |
idevicediagnostics: prevent 'Failed to restart/shutdown device' messages
-rw-r--r-- | tools/idevicediagnostics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c index 464df20..216ebf1 100644 --- a/tools/idevicediagnostics.c +++ b/tools/idevicediagnostics.c @@ -203,7 +203,7 @@ int main(int argc, char **argv) } break; case CMD_RESTART: - if (diagnostics_relay_restart(diagnostics_client, 0) == DIAGNOSTICS_RELAY_E_SUCCESS) { + if (diagnostics_relay_restart(diagnostics_client, DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT) == DIAGNOSTICS_RELAY_E_SUCCESS) { printf("Restarting device.\n"); result = EXIT_SUCCESS; } else { @@ -211,7 +211,7 @@ int main(int argc, char **argv) } break; case CMD_SHUTDOWN: - if (diagnostics_relay_shutdown(diagnostics_client, 0) == DIAGNOSTICS_RELAY_E_SUCCESS) { + if (diagnostics_relay_shutdown(diagnostics_client, DIAGNOSTICS_RELAY_ACTION_FLAG_WAIT_FOR_DISCONNECT) == DIAGNOSTICS_RELAY_E_SUCCESS) { printf("Shutting down device.\n"); result = EXIT_SUCCESS; } else { |