aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_connection.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysqlerl_connection.erl')
-rw-r--r--src/mysqlerl_connection.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl
index 362b807..e009428 100644
--- a/src/mysqlerl_connection.erl
+++ b/src/mysqlerl_connection.erl
@@ -26,8 +26,9 @@ stop(Pid) ->
init([Owner, Host, Port, Database, User, Password, Options]) ->
process_flag(trap_exit, true),
link(Owner),
- {ok, Sup} = mysqlerl_port_sup:start_link(helper(), Host, Port, Database,
- User, Password, Options),
+ {ok, Sup} = supervisor:start_link(mysqlerl_port_sup,
+ [helper(), Host, Port, Database,
+ User, Password, Options]),
{ok, #state{sup = Sup, owner = Owner}}.
terminate(Reason, _State) ->