MRP_UNUSED(key);
- mrp_resource_set_destroy(d->rset);
+ if (d->rset)
+ mrp_resource_set_destroy(d->rset);
mrp_free(d);
}
resource_set_data_t *d;
d = mrp_htbl_lookup(client->sets, u_to_p(msg->handle));
- if (!d || !d->rset) {
+ if (!d) {
mrp_log_error("set '%u.%u' not found", pid, msg->handle);
goto error;
}
/* this is a resource request with no associated
* murphy resource, meaning a monitor or earjack. */
+ mrp_log_info("unregistering special resource %s",
+ d->monitor ? "monitor" : "earjack");
+
if (d->monitor)
client->monitor = FALSE;