diff --git a/adb/usb_osx.c b/adb/usb_osx.c index de7125f04..00d02da5b 100644 --- a/adb/usb_osx.c +++ b/adb/usb_osx.c @@ -256,7 +256,7 @@ AndroidInterfaceAdded(void *refCon, io_iterator_t iterator) } DBG("AndroidDeviceAdded calling register_usb_transport\n"); - register_usb_transport(handle, (serial[0] ? serial : NULL)); + register_usb_transport(handle, (serial[0] ? serial : NULL), 1); // Register for an interest notification of this device being removed. // Pass the reference to our private data as the refCon for the diff --git a/adb/usb_windows.c b/adb/usb_windows.c index 0951f6706..38c4cf484 100644 --- a/adb/usb_windows.c +++ b/adb/usb_windows.c @@ -488,7 +488,7 @@ void find_devices() { true)) { // Lets make sure that we don't duplicate this device if (register_new_device(handle)) { - register_usb_transport(handle, serial_number); + register_usb_transport(handle, serial_number, 1); } else { D("register_new_device failed for %s\n", interf_name); usb_cleanup_handle(handle);