Skip to content

Commit

Permalink
Fix proper startup and stopping.
Browse files Browse the repository at this point in the history
With this, you can stop the application properly.
  • Loading branch information
jlouis committed Jul 4, 2012
1 parent 01ca03e commit b07a956
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pony_core_app.erl
Expand Up @@ -10,10 +10,12 @@
%% ===================================================================

start(_StartType, _StartArgs) ->
pony_core_sup:start_link(),
{ok, Pid} = pony_core_sup:start_link(),
ranch:start_listener(pony, 10,
ranch_tcp, [{port, 6667}, raw, binary, {active, false}],
pony_client, []).
pony_client, []),
{ok, Pid}.

stop(_State) ->
ranch:stop_listener(pony),
ok.

0 comments on commit b07a956

Please sign in to comment.