...
If the Detach has close=true
- If the Link Source has capability "topic" and queue has no consumers, the queue is deleted and the Link is Detached
- else If Link Source has capability "topic" and queue has consumers, the Link is detached with error(resource-locked)
- if Link Source does not have capability "topic", the Link is detached
Pseudo Code
The above described behaviour results in the following pseudo code. Where the below differs from the above the above is considered normative:
...