summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2016-08-16 19:11:02 +0300
committerGitHub <noreply@github.com>2016-08-16 19:11:02 +0300
commitb02d325f21e643710d0e86bbdcf4206c38182516 (patch)
tree237442b2a4ad238bfbf2d05cbd2adc01ed32920a /src
parent4d4144eb920464c60d57896dd2fdeb034714913b (diff)
parent878b6a00ad9ade9adb0c400df6541e63f74b9ede (diff)
downloadrabbitmq-server-git-b02d325f21e643710d0e86bbdcf4206c38182516.tar.gz
Merge pull request #923 from rabbitmq/rabbitmq-server-922
Discard any unexpected messages, such as late replies from gen_server
Diffstat (limited to 'src')
-rw-r--r--src/gm.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gm.erl b/src/gm.erl
index 176e14537f..492117d17f 100644
--- a/src/gm.erl
+++ b/src/gm.erl
@@ -757,7 +757,10 @@ handle_info({'DOWN', MRef, process, _Pid, Reason},
catch
lost_membership ->
{stop, normal, State}
- end.
+ end;
+handle_info(_, State) ->
+ %% Discard any unexpected messages, such as late replies from neighbour_call/2
+ noreply(State).
terminate(Reason, #state { module = Module, callback_args = Args }) ->
Module:handle_terminate(Args, Reason).