Permalink
Browse files

remove unnecessary inet:setopts from server-sent events example

  • Loading branch information...
vinoski committed Jun 29, 2012
1 parent 8dd9f23 commit da6d73cc2f43c54e85068f59d96100ee3fd21654
Showing with 1 addition and 2 deletions.
  1. +1 −2 examples/src/server_sent_events.erl
@@ -51,8 +51,7 @@ handle_call(_Request, _From, State) ->
handle_cast(_Msg, State) ->
{noreply, State}.
-handle_info({ok, YawsPid}, #state{sock=Socket}=State) ->
- ok = inet:setopts(Socket, [{active, once}]),
+handle_info({ok, YawsPid}, State) ->
{ok, Timer} = timer:send_interval(1000, self(), tick),
{noreply, State#state{yaws_pid=YawsPid, timer=Timer}};
handle_info({discard, _YawsPid}, State) ->

0 comments on commit da6d73c

Please sign in to comment.