Change the gen_server:start_link to gen_server2

This commit is contained in:
Feng Lee 2017-02-22 18:47:14 +08:00
parent 5543b72243
commit 5d5de51f89
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@
%% @doc Start WebSocket Client.
start_link(Env, WsPid, Req, ReplyChannel) ->
gen_server:start_link(?MODULE, [Env, WsPid, Req, ReplyChannel], []).
gen_server2:start_link(?MODULE, [Env, WsPid, Req, ReplyChannel], []).
info(CPid) ->
gen_server2:call(CPid, info).