ruby_rabbitmq_janus 2.2.0.pre.166 → 2.2.0.pre.167

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4583dec232d2593683024eb0d072182eab58763
4
- data.tar.gz: 22f17c0bb67461ebf6a49471221c588ed95573ef
3
+ metadata.gz: 21ab718211520db84737cd39018586e63a8d5ca7
4
+ data.tar.gz: 112173d694338be0fa7452cf4b16c819ae96e939
5
5
  SHA512:
6
- metadata.gz: fdd6ef37bb3be5a417622b58900e48ab0c1b66efb55077d8df1acfb6f795271ec9545f5c9e1a9dba093d56644251c52cfe970f34d46b678e392e755fb08e1c51
7
- data.tar.gz: d738d79af133ecb9a3307bea70be8aca20aab5cb66c935cb8edb5537b13076a7610c3929764d7bae7d8e3eea92c3416cbe3a63bb4a8a07dce94cf1bffbaf3b99
6
+ metadata.gz: 73cdaa226ff856ceb472ba7cd31ba2f3c03d78c30a134382b4407ec49abf7e2306c40fb2281ee21e422363bb1ab473be304dd9492edae0d3ae7bfaf94b3480e2
7
+ data.tar.gz: 65f5e0414ee23f91e539d54b4b1dbabf05dbb8651fe24396c6a13aab2a4f2918b29a3a6eae57bdcae82fde8b0eade4b62ddb68cbf0a1443147af078d9339eec0
@@ -28,6 +28,7 @@ module RubyRabbitmqJanus
28
28
  def restart_session
29
29
  @session = response_session
30
30
  response_keepalive
31
+ update_model
31
32
  end
32
33
 
33
34
  # Start a timer for TTL
@@ -42,7 +43,7 @@ module RubyRabbitmqJanus
42
43
  end
43
44
 
44
45
  def instance_is_down
45
- janus = Models::JanusInstance.find_by_session(@session)
46
+ janus = update_model
46
47
  janus.set(enable: false)
47
48
 
48
49
  Tools::Log.instance.fatal \
@@ -52,6 +53,10 @@ module RubyRabbitmqJanus
52
53
 
53
54
  private
54
55
 
56
+ def update_model
57
+ Models::JanusInstance.find_by_session(@session)
58
+ end
59
+
55
60
  def publisher
56
61
  Rabbit::Publisher::PublishKeepalive.new(@rabbit.channel)
57
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_rabbitmq_janus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.pre.166
4
+ version: 2.2.0.pre.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy