Skip to content

Commit

Permalink
do not stop cowboy listener when module stops
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwski committed Apr 15, 2016
1 parent e57f98e commit 5ac6e00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/ejabberd/src/mod_bosh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
-include_lib("exml/include/exml_stream.hrl").
-include("mod_bosh.hrl").

-define(LISTENER, ?MODULE).
-define(DEFAULT_BACKEND, mnesia).
-define(DEFAULT_MAX_AGE, 1728000). %% 20 days in seconds
-define(DEFAULT_INACTIVITY, 30). %% seconds
Expand Down Expand Up @@ -131,9 +130,7 @@ start(_Host, Opts) ->
end.

stop(_Host) ->
%% TODO: stop backend and supervisor
cowboy:stop_listener(?LISTENER).

ok.
%%--------------------------------------------------------------------
%% Hooks handlers
%%--------------------------------------------------------------------
Expand Down

0 comments on commit 5ac6e00

Please sign in to comment.