amq-client 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -243,7 +243,9 @@ module AMQ
243
243
  metadata = content_frames.shift
244
244
  payload = content_frames.map { |frame| frame.payload }.join
245
245
 
246
- consumer.handle_delivery(basic_deliver, metadata, payload)
246
+ # Handle the delivery only if the consumer still exists.
247
+ # The broker has been known to deliver a few messages after the consumer has been shut down.
248
+ consumer.handle_delivery(basic_deliver, metadata, payload) if consumer
247
249
  end
248
250
 
249
251
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQ
4
4
  module Client
5
- VERSION = "0.8.4"
5
+ VERSION = "0.8.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 4
10
- version: 0.8.4
9
+ - 5
10
+ version: 0.8.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jakub Stastny
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-10-27 00:00:00 Z
21
+ date: 2011-10-28 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: eventmachine