summaryrefslogtreecommitdiffstats
path: root/src/core/ephraim_account.erl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-10-05 04:06:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-10-05 04:06:52 +0200
commite6d184833a8c46d3ecd3a407c66c561bb0d47123 (patch)
treec4b1a36bdbc71a12add3bb5871a2c8e6fe7ec2f2 /src/core/ephraim_account.erl
parent3d451b3dc69d91b04c1153f63436b63940287b13 (diff)
downloadephraim-e6d184833a8c46d3ecd3a407c66c561bb0d47123.tar
ephraim-e6d184833a8c46d3ecd3a407c66c561bb0d47123.zip
Don't connect before all event handlers are set up
Diffstat (limited to 'src/core/ephraim_account.erl')
-rw-r--r--src/core/ephraim_account.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ephraim_account.erl b/src/core/ephraim_account.erl
index 2e95f88..b71cb08 100644
--- a/src/core/ephraim_account.erl
+++ b/src/core/ephraim_account.erl
@@ -13,6 +13,9 @@ start_link(Account) ->
{ok, Connection} = supervisor:start_child(Pid, {connection, {ephraim_conn, start_link, [EventManager]}, permanent, 10000, worker, [ephraim_conn]}),
{ok, Roster} = supervisor:start_child(Pid, {roster, {ephraim_roster, start_link, [EventManager, Connection]}, permanent, 1000, worker, [ephraim_roster]}),
{ok, _} = supervisor:start_child(Pid, {conv_man, {ephraim_conv_man, start_link, [EventManager, Connection, Roster]}, permanent, 1000, supervisor, [ephraim_conv_man]}),
+
+ ephraim_conn:connect(Connection),
+
{ok, Pid}.
init(_Args) ->