summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idle.c b/src/idle.c
index db0fa38751..96b743ad90 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -138,11 +138,11 @@ void rt_thread_idle_excute(void)
{
module->nref --;
}
- }
- /* unload module */
- if (module->nref == 0)
- rt_module_unload(module);
+ /* unload module */
+ if (module->nref == 0)
+ rt_module_unload(module);
+ }
#endif
}
}