diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-09-10 17:13:16 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-09-10 17:13:16 +0100 |
| commit | 8f381ee252fc5d27ed77804f4ed3f10f0ddd5b7c (patch) | |
| tree | a636c146a81c977a065e5bfeb583dec0080e46e1 /src | |
| parent | 56f8b31ebd48998cd14cb98b6eca5f5a5f63e3df (diff) | |
| download | rabbitmq-server-git-8f381ee252fc5d27ed77804f4ed3f10f0ddd5b7c.tar.gz | |
Tabs => spaces
Diffstat (limited to 'src')
| -rw-r--r-- | src/gen_server2.erl | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl index 20f701bd57..c58015277c 100644 --- a/src/gen_server2.erl +++ b/src/gen_server2.erl @@ -957,21 +957,21 @@ terminate(Reason, Msg, #gs2_state { name = Name, state = State, debug = Debug }) -> case catch Mod:terminate(Reason, State) of - {'EXIT', R} -> - error_info(R, Reason, Name, Msg, State, Debug), - exit(R); - _ -> - case Reason of - normal -> - exit(normal); - shutdown -> - exit(shutdown); - {shutdown,_}=Shutdown -> - exit(Shutdown); - _ -> - error_info(Reason, undefined, Name, Msg, State, Debug), - exit(Reason) - end + {'EXIT', R} -> + error_info(R, Reason, Name, Msg, State, Debug), + exit(R); + _ -> + case Reason of + normal -> + exit(normal); + shutdown -> + exit(shutdown); + {shutdown,_}=Shutdown -> + exit(Shutdown); + _ -> + error_info(Reason, undefined, Name, Msg, State, Debug), + exit(Reason) + end end. error_info(_Reason, _RootCause, application_controller, _Msg, _State, _Debug) -> |
