]> granicus.if.org Git - ejabberd/commitdiff
Don't loop when there is nothing after a stream start
authorAlexey Shchepin <alexey@process-one.net>
Thu, 25 Nov 2010 18:30:40 +0000 (20:30 +0200)
committerBadlop <badlop@process-one.net>
Fri, 26 Nov 2010 16:08:00 +0000 (17:08 +0100)
src/web/ejabberd_http_bind.erl

index 4d15caadc9c40f166dacff2a0d7b5d0935399d67..1533af361a9b5096517a50f1f8bea77b65e03d5f 100644 (file)
@@ -966,8 +966,6 @@ prepare_outpacket_response(#http_bind{id=Sid, wait=Wait,
                                StreamTail]
                end,
            case OutEls of 
-               [] ->
-                   prepare_response(Sess, Rid, OutPacket, true);
                [{xmlelement,
                  "stream:error",_,_}] ->
                    {200, ?HEADER, "<body type='terminate' "