res_http_websockets: Fix extra unref of module
authorCorey Farrell <git@cfware.com>
Tue, 4 Nov 2014 19:33:21 +0000 (19:33 +0000)
committerCorey Farrell <git@cfware.com>
Tue, 4 Nov 2014 19:33:21 +0000 (19:33 +0000)
commit9f2874639d039306d66804a90436a3c5f9ee07ee
treef5b19b79b0d8286af06f4f0aad4ed77b222cea5d
parentbdc35c77b95af9ef8239b401f6f4a7fbaa824af4
res_http_websockets: Fix extra unref of module

In websocket_add_protocol_internal is used to add the "echo"
protocol, but ast_websocket_remove_protocol is used to remove
it.  This causes an extra call to ast_module_unref.

ASTERISK-24480 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4140/
........

Merged revisions 427200 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 427201 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_http_websocket.c