diff options
author | 2025-06-12 17:38:56 +0200 | |
---|---|---|
committer | 2025-06-12 17:38:56 +0200 | |
commit | 5058a1e8c5aeba194b44ba60036fad79b08fe356 (patch) | |
tree | e5ceac0a660122dfacd56b319bb3e08fc89c4042 | |
parent | 421b6e5264ae0088f90fc58f2c209fbb43e30a00 (diff) | |
download | libimobiledevice-5058a1e8c5aeba194b44ba60036fad79b08fe356.tar.gz libimobiledevice-5058a1e8c5aeba194b44ba60036fad79b08fe356.tar.bz2 |
idevicesyslog: Fix unplug handling
-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) } } } else if (event->event == IDEVICE_DEVICE_REMOVE) { - if (syslog && (strcmp(udid, event->udid) == 0)) { + if ((syslog || ostrace) && (strcmp(udid, event->udid) == 0)) { stop_logging(); fprintf(stdout, "[disconnected:%s]\n", udid); if (exit_on_disconnect) { |