summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-18 00:00:51 +0200
committerGravatar Jonathan Beck2008-08-21 19:15:38 +0200
commitefe860d7c66c18ce9c53ecf36e2b24af1f501e74 (patch)
treeb4b80bf40e68a1f567dfddde98327ec2c3f8c7e4
parentd5e52dbdfd46fd15e47e006590573902fcc3bbed (diff)
downloadlibimobiledevice-efe860d7c66c18ce9c53ecf36e2b24af1f501e74.tar.gz
libimobiledevice-efe860d7c66c18ce9c53ecf36e2b24af1f501e74.tar.bz2
close usb device before reopening it.
-rw-r--r--src/iphone.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iphone.c b/src/iphone.c
index ecbb751..b796180 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -49,6 +49,7 @@ iPhone *get_iPhone() {
usb_find_busses();
usb_find_devices();
busses = usb_get_busses();
+
// Set the device configuration
for (bus = busses; bus; bus = bus->next) {