Fixed bug reported: Canceling Expired or Non-Existing Subsciptions does not return specified result.[bugs:#21]. Thank you, lo pe!
This commit is contained in:
@@ -305,12 +305,15 @@ static bool cov_list_subscribe(
|
|||||||
/* Out of resources */
|
/* Out of resources */
|
||||||
*error_class = ERROR_CLASS_RESOURCES;
|
*error_class = ERROR_CLASS_RESOURCES;
|
||||||
*error_code = ERROR_CODE_NO_SPACE_TO_ADD_LIST_ELEMENT;
|
*error_code = ERROR_CODE_NO_SPACE_TO_ADD_LIST_ELEMENT;
|
||||||
|
found = false;
|
||||||
} else {
|
} else {
|
||||||
/* Unable to cancel request - valid object not subscribed */
|
/* cancellationRequest - valid object not subscribed */
|
||||||
*error_class = ERROR_CLASS_SERVICES;
|
/* From BACnet Standard 135-2010-13.14.2
|
||||||
*error_code = ERROR_CODE_UNKNOWN_SUBSCRIPTION;
|
...Cancellations that are issued for which no matching COV
|
||||||
|
context can be found shall succeed as if a context had
|
||||||
|
existed, returning 'Result(+)'.*/
|
||||||
|
found = true;
|
||||||
}
|
}
|
||||||
found = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
|
|||||||
Reference in New Issue
Block a user