diff options
author | Nikias Bassen | 2014-04-16 17:47:58 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-04-16 17:47:58 +0200 |
commit | c24463ee5f4ebd3cabb279c2a37e35b1777f4dd9 (patch) | |
tree | 8f76507acd8686ae55c10b29104998ea2e384daf /src | |
parent | c92b4f59aba053a3df1ae67c49403122650ad996 (diff) | |
download | usbmuxd-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.c | 2 |
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) { |