Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
also match {error, closed}, which I got in some logs, see below
Browse files Browse the repository at this point in the history
2015-08-20 06:06:15 =ERROR REPORT====
Error in process <0.27879.32> on node '[email protected]' with exit value:
{[
{reason,{case_clause,{error,closed}}},
{mfa,{bullet_handler,info,3}},
{stacktrace,[{bullet_handler,reply_get_mode,3,[
{file,"src/bullet_handler.erl"},{line,201}]},
{bullet_handler,info,3,[{file,"src/bullet_handler.erl"},{line...
  • Loading branch information
marianoguerra committed Aug 20, 2015
1 parent cba35d3 commit 8053fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bullet_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ reply_get_mode(eventsource, Data, Req) ->
Line <- binary:split(Bin, [<<"\r\n">>, <<"\r">>, <<"\n">>], [global])],
case cowboy_req:chunk([Event, <<"\n">>], Req) of
ok -> {loop, Req};
close -> {ok, Req}
close -> {ok, Req};
{error, closed} -> {ok, Req}
end.

%% Internal.
Expand Down

0 comments on commit 8053fc2

Please sign in to comment.