#include "application-class.h"
#include "resource-set.h"
+#include "resource-owner.h"
#include "zone.h"
#define CLASS_MAX 64
rset->zone = mrp_zone_get_id(zone);
rset->request.id = reqid;
+ if (rset->state == mrp_resource_no_request)
+ rset->state = mrp_resource_release;
+
mrp_application_class_move_resource_set(rset);
mrp_resource_owner_update_zone(rset->zone, rset, reqid);
if (advice_ownership(owner, zone, class, rset, res))
advice |= ((mrp_resource_mask_t)1 << rid);
}
- if (mandatory && (advice & mandatory) != mandatory)
+ if ((advice & mandatory) != mandatory)
advice = 0;
break;