summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevice.c b/src/idevice.c
index c8574fc..3984583 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -296,6 +296,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_event_unsubscribe(void)
296 if (!event_ctx) { 296 if (!event_ctx) {
297 return IDEVICE_E_SUCCESS; 297 return IDEVICE_E_SUCCESS;
298 } 298 }
299 event_ctx->callback = NULL;
299 return idevice_events_unsubscribe(event_ctx); 300 return idevice_events_unsubscribe(event_ctx);
300} 301}
301 302