diff options
-rw-r--r-- | tools/idevicesyslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 5ecd0ad..1c6e0c7 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
@@ -674,7 +674,7 @@ static void device_event_cb(const idevice_event_t* event, void* userdata) | |||
674 | } | 674 | } |
675 | } | 675 | } |
676 | } else if (event->event == IDEVICE_DEVICE_REMOVE) { | 676 | } else if (event->event == IDEVICE_DEVICE_REMOVE) { |
677 | if (syslog && (strcmp(udid, event->udid) == 0)) { | 677 | if ((syslog || ostrace) && (strcmp(udid, event->udid) == 0)) { |
678 | stop_logging(); | 678 | stop_logging(); |
679 | fprintf(stdout, "[disconnected:%s]\n", udid); | 679 | fprintf(stdout, "[disconnected:%s]\n", udid); |
680 | if (exit_on_disconnect) { | 680 | if (exit_on_disconnect) { |