Ver código fonte

ncd: NCDModule: require that process is not terminated when calling NCDModuleProcess_GetObj()

ambrop7 13 anos atrás
pai
commit
ff7e25c8b3
1 arquivos alterados com 1 adições e 5 exclusões
  1. 1 5
      ncd/NCDModule.c

+ 1 - 5
ncd/NCDModule.c

@@ -438,13 +438,9 @@ int NCDModuleProcess_GetObj (NCDModuleProcess *o, NCD_string_id_t name, NCDObjec
 {
     DebugObject_Access(&o->d_obj);
     ASSERT(o->state != PROCESS_STATE_INIT)
+    ASSERT(o->state != PROCESS_STATE_TERMINATED)
     ASSERT(out_object)
     
-    // interpreter gone?
-    if (o->state == PROCESS_STATE_TERMINATED) {
-        return 0;
-    }
-    
     int res = o->interp_func_getobj(o->interp_user, name, out_object);
     ASSERT(res == 0 || res == 1)