magicbus 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,8 +26,8 @@ class MagicBus::Subscriber
26
26
 
27
27
  user_id = user_id.to_s
28
28
 
29
- if channels[user_id].status == :closed ||
30
- channels[user_id].nil?
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]
@@ -1,5 +1,5 @@
1
1
  module MagicBus
2
2
 
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
 
5
- end
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magicbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: