Skip to content

Commit

Permalink
preflight: Unset preflight callback data when no longer needed to pre…
Browse files Browse the repository at this point in the history
…vent segfault
  • Loading branch information
nikias committed Apr 16, 2014
1 parent c92b4f5 commit c24463e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/preflight.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ static void* preflight_worker_handle_device_add(void* userdata)
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) {
Expand Down

0 comments on commit c24463e

Please sign in to comment.