diff options
| author | 2020-06-19 00:19:45 +0200 | |
|---|---|---|
| committer | 2020-06-19 00:19:45 +0200 | |
| commit | 02aa163b60602caa43db6a2ce9f86b3cbd5806ad (patch) | |
| tree | 4ce080f6c1890a54bf856bc542b780c83fc1b422 /tools | |
| parent | 4791a82cc683a9eaacef07f566af81c157c50c93 (diff) | |
| download | libimobiledevice-02aa163b60602caa43db6a2ce9f86b3cbd5806ad.tar.gz libimobiledevice-02aa163b60602caa43db6a2ce9f86b3cbd5806ad.tar.bz2 | |
idevicesyslog: Make sure device event callback respects the presence or absence of --network option
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicesyslog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 0eed138..5e9c386 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -484,6 +484,11 @@ static void stop_logging(void) | |||
| 484 | 484 | ||
| 485 | static void device_event_cb(const idevice_event_t* event, void* userdata) | 485 | static void device_event_cb(const idevice_event_t* event, void* userdata) |
| 486 | { | 486 | { |
| 487 | if (use_network && event->conn_type != CONNECTION_NETWORK) { | ||
| 488 | return; | ||
| 489 | } else if (!use_network && event->conn_type != CONNECTION_USBMUXD) { | ||
| 490 | return; | ||
| 491 | } | ||
| 487 | if (event->event == IDEVICE_DEVICE_ADD) { | 492 | if (event->event == IDEVICE_DEVICE_ADD) { |
| 488 | if (!syslog) { | 493 | if (!syslog) { |
| 489 | if (!udid) { | 494 | if (!udid) { |
