diff options
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 9d5911d..2ebe89c 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -2269,7 +2269,9 @@ IRECV_API irecv_error_t irecv_device_event_unsubscribe(irecv_device_event_contex | |||
| 2269 | 2269 | ||
| 2270 | if (num == 0) { | 2270 | if (num == 0) { |
| 2271 | #ifdef HAVE_IOKIT | 2271 | #ifdef HAVE_IOKIT |
| 2272 | CFRunLoopStop(iokit_runloop); | 2272 | if (iokit_runloop) { |
| 2273 | CFRunLoopStop(iokit_runloop); | ||
| 2274 | } | ||
| 2273 | #endif | 2275 | #endif |
| 2274 | thread_join(th_event_handler); | 2276 | thread_join(th_event_handler); |
| 2275 | thread_free(th_event_handler); | 2277 | thread_free(th_event_handler); |
