summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
if (!event_ctx) {
return IDEVICE_E_SUCCESS;
}
+ event_ctx->callback = NULL;
return idevice_events_unsubscribe(event_ctx);
}