diff options
Diffstat (limited to 'tools/idevicebtlogger.c')
-rw-r--r-- | tools/idevicebtlogger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/idevicebtlogger.c b/tools/idevicebtlogger.c index 421ce98..8de6b22 100644 --- a/tools/idevicebtlogger.c +++ b/tools/idevicebtlogger.c @@ -440,13 +440,14 @@ int main(int argc, char *argv[]) assert(0); return -2; } - idevice_event_subscribe(device_event_cb, NULL); + idevice_subscription_context_t context = NULL; + idevice_events_subscribe(&context, device_event_cb, NULL); while (!quit_flag) { sleep(1); } - idevice_event_unsubscribe(); + idevice_events_unsubscribe(context); stop_logging(); fclose(packetlogger_file); |