summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-04-16 17:47:58 +0200
committerGravatar Nikias Bassen2014-04-16 17:47:58 +0200
commitc24463ee5f4ebd3cabb279c2a37e35b1777f4dd9 (patch)
tree8f76507acd8686ae55c10b29104998ea2e384daf /src
parentc92b4f59aba053a3df1ae67c49403122650ad996 (diff)
downloadusbmuxd-c24463ee5f4ebd3cabb279c2a37e35b1777f4dd9.tar.gz
usbmuxd-c24463ee5f4ebd3cabb279c2a37e35b1777f4dd9.tar.bz2
preflight: Unset preflight callback data when no longer needed to prevent segfault
Diffstat (limited to 'src')
-rw-r--r--src/preflight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preflight.c b/src/preflight.c
index 88e6700..56c658a 100644
--- a/src/preflight.c
+++ b/src/preflight.c
@@ -271,6 +271,8 @@ retry:
while (cbdata.np && cbdata.is_device_connected == 1) {
sleep(1);
}
+ device_set_preflight_cb_data(info->id, NULL);
+
usbmuxd_log(LL_INFO, "%s: Finished waiting for notification from device %s, is_device_connected %d", __func__, _dev->udid, cbdata.is_device_connected);
if (cbdata.np) {