summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 3bcfbf2..0e971a0 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -996,12 +996,16 @@ static int check_context(irecv_client_t client) {
IRECV_API void irecv_init(void)
{
+#ifndef USE_DUMMY
thread_once(&init_once, _irecv_init);
+#endif
}
IRECV_API void irecv_exit(void)
{
+#ifndef USE_DUMMY
thread_once(&deinit_once, _irecv_deinit);
+#endif
}
#ifndef USE_DUMMY