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:
271 while (cbdata.np && cbdata.is_device_connected == 1) { 271 while (cbdata.np && cbdata.is_device_connected == 1) {
272 sleep(1); 272 sleep(1);
273 } 273 }
274 device_set_preflight_cb_data(info->id, NULL);
275
274 usbmuxd_log(LL_INFO, "%s: Finished waiting for notification from device %s, is_device_connected %d", __func__, _dev->udid, cbdata.is_device_connected); 276 usbmuxd_log(LL_INFO, "%s: Finished waiting for notification from device %s, is_device_connected %d", __func__, _dev->udid, cbdata.is_device_connected);
275 277
276 if (cbdata.np) { 278 if (cbdata.np) {