From a1bce244611cd1e89d40ef1941c861dcc65b352d Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 16 Jun 2009 18:26:53 +0000 Subject: [PATCH] Include condition in http-bind terminate body when service stops (EJAB-792) SVN Revision: 2308 --- src/web/ejabberd_http_bind.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index a3feaf7e7..05468e3a1 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -4,7 +4,7 @@ %%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as %%% HTTP Binding) %%% Created : 21 Sep 2005 by Stefan Strigler -%%% Id : $Id: ejabberd_http_bind.erl 827 2008-11-21 15:49:09Z jsautret $ +%%% Id : $Id: ejabberd_http_bind.erl 854 2009-01-12 23:37:40Z badlop $ %%%---------------------------------------------------------------------- -module(ejabberd_http_bind). @@ -894,6 +894,8 @@ prepare_response(#http_bind{id=Sid, wait=Wait, hold=Hold}=Sess, ] ++ BOSH_attribs,OutEls})} end end; + {'EXIT', {shutdown, _}} -> + {200, ?HEADER, ""}; {'EXIT', _Reason} -> {200, ?HEADER, ""} end.