diff options
| author | [email protected] <[email protected]> | 2012-05-16 06:18:58 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-05-16 06:18:58 +0000 |
| commit | d82a8cce2184ece51c097f749536dbe0b7e65e22 (patch) | |
| tree | 26b1cbf27ed95801802f2848d185e0103d34c56e /src/idle.c | |
| parent | 55f5069a5eda16382edecadc0b0ebb636dc4623d (diff) | |
fixed module unload issue; code cleanup for timer.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2119 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 8 |
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 } } |
