summaryrefslogtreecommitdiff
path: root/LICENSE-MPL-RabbitMQ
diff options
context:
space:
mode:
authorMichael Bridgen <mikeb@lshift.net>2009-10-19 17:11:50 +0100
committerMichael Bridgen <mikeb@lshift.net>2009-10-19 17:11:50 +0100
commit626cb737b63644a97d0e62aa54005b4c816ac8ca (patch)
tree0c8bb7786245bdd1ec4d8a5fb5b93781f04d4e67 /LICENSE-MPL-RabbitMQ
parent0aca55dbe898a61a2379cff6b151822de2dd3834 (diff)
downloadrabbitmq-server-git-626cb737b63644a97d0e62aa54005b4c816ac8ca.tar.gz
Do the queue deletion synchronously. Instead of replying immediately
using gen_server2:call, then doing the work, we include the reply in the return value for gen_server2 to pass on. It happens that gen_server2 will terminate the process, on getting stop, before it sends the reply on -- just what we want here. NB: here we translate between the return value of handle_ch_down/2, which was intended to be the return value for handle_call, and an actual return value. Slightly nicer would be for handle_ch_down to return the state and (say) 'ok' or 'stop', to make its contract more explicit.
Diffstat (limited to 'LICENSE-MPL-RabbitMQ')
0 files changed, 0 insertions, 0 deletions