magicbus 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magicbus/subscriber.rb +2 -2
- data/lib/magicbus/version.rb +2 -2
- metadata +1 -1
data/lib/magicbus/subscriber.rb
CHANGED
@@ -26,8 +26,8 @@ class MagicBus::Subscriber
|
|
26
26
|
|
27
27
|
user_id = user_id.to_s
|
28
28
|
|
29
|
-
if channels[user_id].
|
30
|
-
|
29
|
+
if channels[user_id].nil? ||
|
30
|
+
channels[user_id].status == :closed
|
31
31
|
|
32
32
|
channels[user_id] = AMQP::Channel.new(connection)
|
33
33
|
channel = channels[user_id]
|
data/lib/magicbus/version.rb
CHANGED