aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_router.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_router.erl')
-rw-r--r--src/ejabberd_router.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_router.erl b/src/ejabberd_router.erl
index 171244c03..9de7e67f4 100644
--- a/src/ejabberd_router.erl
+++ b/src/ejabberd_router.erl
@@ -19,7 +19,7 @@
dirty_get_all_domains/0
]).
--export([start/0, init/0]).
+-export([start_link/0, init/0]).
-include("ejabberd.hrl").
@@ -27,8 +27,8 @@
-record(local_route, {domain, pid}).
-start() ->
- spawn(ejabberd_router, init, []).
+start_link() ->
+ {ok, proc_lib:spawn_link(ejabberd_router, init, [])}.
init() ->
register(ejabberd_router, self()),