Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Transplant of bug25116
Browse files Browse the repository at this point in the history
  • Loading branch information
Emile Joubert committed Sep 24, 2012
1 parent bae3ed7 commit 7877277
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/amqp_gen_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ callback(Function, Params, State = #state{module = Mod,
%%---------------------------------------------------------------------------

init([Mod, Sup, AmqpParams, SIF, SChMF, ExtraParams]) ->
%% Trapping exits since we need to make sure that the `terminate/2' is
%% called in the case of direct connection (it does not matter for a network
%% connection). See bug25116.
process_flag(trap_exit, true),
{ok, MState} = Mod:init(ExtraParams),
{ok, #state{module = Mod,
module_state = MState,
Expand Down

0 comments on commit 7877277

Please sign in to comment.