amqp 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amqp/channel.rb +5 -3
- data/lib/amqp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75b12b09ec783fd8d5b1e953b2ad36d348401f7
|
4
|
+
data.tar.gz: 3a2e57b606aa0563c2b94ff911a4fd32cacac18a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7956da40b93fb3aca23c1a3c318c9bc343761e4bf2265019957dfb48a8a482284fc52118fa4b5dea46b9b8ac6b4d0fbc8af76d1605cc6b3d7921dd148af8688
|
7
|
+
data.tar.gz: 87f9aa52d4ccbbec0cf3893d62534a6bf4f6c31facc379c19b555b6010cf258b663462ccd0026ee0b45338ed22d499a324e99d89f13d0d3fd718831ea9525c9b
|
data/lib/amqp/channel.rb
CHANGED
@@ -949,10 +949,12 @@ module AMQP
|
|
949
949
|
#
|
950
950
|
# @api public
|
951
951
|
def close(reply_code = 200, reply_text = DEFAULT_REPLY_TEXT, class_id = 0, method_id = 0, &block)
|
952
|
-
self.
|
953
|
-
|
952
|
+
self.once_open do
|
953
|
+
self.status = :closing
|
954
|
+
@connection.send_frame(AMQ::Protocol::Channel::Close.encode(@id, reply_code, reply_text, class_id, method_id))
|
954
955
|
|
955
|
-
|
956
|
+
self.redefine_callback :close, &block
|
957
|
+
end
|
956
958
|
end
|
957
959
|
|
958
960
|
# @endgroup
|
data/lib/amqp/version.rb
CHANGED