From c24463ee5f4ebd3cabb279c2a37e35b1777f4dd9 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 16 Apr 2014 17:47:58 +0200 Subject: preflight: Unset preflight callback data when no longer needed to prevent segfault --- src/preflight.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.1-32-gdbae