Skip to content

Commit

Permalink
Merge pull request inaka#115 from kennethlakin/maybe-issue-95-fix
Browse files Browse the repository at this point in the history
Maybe issue 95 fix
  • Loading branch information
jfacorro committed Nov 26, 2015
2 parents db0c995 + 0c1113f commit f045cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shotgun.erl
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ wait_response({gun_response, _Pid, _StreamRef, fin, StatusCode, Headers},
gen_fsm:reply(From, {ok, Response}),
Responses;
true ->
gen_fsm:reply(From, {ok, Response})
gen_fsm:reply(From, {ok, Response}),
queue:in(Response, Responses)
end,
{next_state, at_rest, State#{responses => NewResponses}, 0};
wait_response({gun_response, _Pid, _StreamRef, nofin, StatusCode, Headers},
Expand Down

0 comments on commit f045cdd

Please sign in to comment.