From d54f2bbfc682cdd320171f2c67c3a642e3c42b0f Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Mon, 13 Sep 2010 01:03:09 +0000 Subject: module update git-svn-id: https://rt-thread.googlecode.com/svn/trunk@905 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/idle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/idle.c') diff --git a/src/idle.c b/src/idle.c index fcd6e457e2..b9c8529da7 100644 --- a/src/idle.c +++ b/src/idle.c @@ -105,10 +105,9 @@ void rt_thread_idle_excute(void) module->module_thread = RT_NULL; } - /* if sub thread list and main thread are null */ + /* if sub thread list and main thread are all enmpy */ if((module->module_thread == RT_NULL) && - rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) && - (module->module_info->module_type == RT_Module_Class_APP)) + rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) ) { /* unload module */ rt_module_unload(module); -- cgit v1.3.1