hot_bunnies 1.3.1-java → 1.3.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,11 +84,18 @@ module HotBunnies
84
84
  def cancel
85
85
  raise 'Can\'t cancel: the subscriber haven\'t received an OK yet' if !@subscriber || !@subscriber.consumer_tag
86
86
  @channel.basic_cancel(@subscriber.consumer_tag)
87
- @executor.shutdown_now if @executor && @shut_down_executor
87
+
88
+ maybe_shutdown_executor
88
89
  end
89
90
 
90
91
  private
91
92
 
93
+ def maybe_shutdown_executor
94
+ if @executor && @shut_down_executor
95
+ @executor.shutdown
96
+ end
97
+ end
98
+
92
99
  def run(&block)
93
100
  @subscriber = BlockingSubscriber.new(@channel, self)
94
101
  @channel.basic_consume(@queue_name, !@ack, @subscriber.consumer)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module HotBunnies
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
5
5
  end
@@ -32,6 +32,8 @@ describe "Any AMQP 0.9.1 client using RabbitMQ" do
32
32
  }
33
33
  }, :routing_key => queue1.name)
34
34
 
35
+ sleep 1
36
+
35
37
  mc1, _ = queue1.status
36
38
  mc2, _ = queue2.status
37
39
  mc3, _ = queue3.status
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hot_bunnies
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
11
11
  platform: java
12
12
  authors:
13
13
  - Theo Hultberg
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-10 00:00:00 Z
19
+ date: 2011-11-15 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: A object oriented interface to RabbitMQ that uses the Java driver under the hood