Ignores notify_queues/1 result and removes

its matches to 'ok'.

Ref: #63
This commit is contained in:
Ayanda Dube 2016-03-02 15:44:36 +00:00
parent adbdab6a5d
commit 7b861020a7
1 changed files with 4 additions and 4 deletions

View File

@ -608,11 +608,11 @@ handle_pre_hibernate(State) ->
{hibernate, rabbit_event:stop_stats_timer(State, #ch.stats_timer)}.
terminate(Reason, State) ->
{Res, _State1} = notify_queues(State),
{_Res, _State1} = notify_queues(State),
case Reason of
normal -> ok = Res;
shutdown -> ok = Res;
{shutdown, _Term} -> ok = Res;
normal -> ok;
shutdown -> ok;
{shutdown, _Term} -> ok;
_ -> ok
end,
pg_local:leave(rabbit_channels, self()),