diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2010-12-21 15:25:31 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2010-12-21 15:25:31 +0000 |
| commit | 43ebb9465bca66ae20b54c0677dbd0574968c89b (patch) | |
| tree | 63ec21ccb39611d525027305da7eeed06b70b200 /src | |
| parent | b9dbac16a49924b0abf4fceb3e0f7034a19b75c8 (diff) | |
| download | rabbitmq-server-git-43ebb9465bca66ae20b54c0677dbd0574968c89b.tar.gz | |
Don't attempt to verify the pid represents a connection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_networking.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 1c542ffe7b..33ae20e58c 100644 --- a/src/rabbit_networking.erl +++ b/src/rabbit_networking.erl @@ -258,10 +258,7 @@ connection_info_all() -> cmap(fun (Q) -> connection_info(Q) end). connection_info_all(Items) -> cmap(fun (Q) -> connection_info(Q, Items) end). close_connection(Pid, Explanation) -> - case lists:member(Pid, connections()) of - true -> rabbit_reader:shutdown(Pid, Explanation); - false -> throw({error, {not_a_connection_pid, Pid}}) - end. + rabbit_reader:shutdown(Pid, Explanation). %%-------------------------------------------------------------------- |
