Fill in relay unsubscription

This commit is contained in:
Tony Garnock-Jones 2012-01-08 14:54:20 -05:00
parent b7385e4927
commit 5217e085ea
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ let dispatch_message n ch m =
(Message.subscribe_ok (Str filter))
(Str "")
else Log.warn "Bind failed" [Str filter]
| Message.Unsubscribe token ->
() (* %%% TODO *)
| Message.Unsubscribe (Str token) ->
if Node.unbind token
then ()
else Log.warn "Unbind failed" [Str token]
| _ ->
send_error ch "Message not understood" (Message.sexp_of_message m)