setopts is in inet, not gen_tcp
This commit is contained in:
parent
babd0cc11f
commit
a484d14c41
@ -117,7 +117,7 @@ handle_control_change(S, _OldPid, _NewPid) ->
|
|||||||
handle_active(S = #state{ owner = Pid, tcp_sock = TcpSock }, Pid, Active) ->
|
handle_active(S = #state{ owner = Pid, tcp_sock = TcpSock }, Pid, Active) ->
|
||||||
case Active of
|
case Active of
|
||||||
true ->
|
true ->
|
||||||
gen_tcp:setopts(TcpSock, [{active, true}]),
|
inet:setopts(TcpSock, [{active, true}]),
|
||||||
{ok, handle_msgs(S#state{ active = true })};
|
{ok, handle_msgs(S#state{ active = true })};
|
||||||
once ->
|
once ->
|
||||||
S1 = handle_msgs(S#state{ active = {once, false} }),
|
S1 = handle_msgs(S#state{ active = {once, false} }),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user