ruby_rabbitmq_janus 2.2.0.pre.167 → 2.2.0.pre.168

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: 21ab718211520db84737cd39018586e63a8d5ca7
4
- data.tar.gz: 112173d694338be0fa7452cf4b16c819ae96e939
3
+ metadata.gz: bcee5bf099562f3a0a8431e60d7e77fe85e23f16
4
+ data.tar.gz: 5a1a65931777107fa7ba4a1d86a1f66257881ab6
5
5
  SHA512:
6
- metadata.gz: 73cdaa226ff856ceb472ba7cd31ba2f3c03d78c30a134382b4407ec49abf7e2306c40fb2281ee21e422363bb1ab473be304dd9492edae0d3ae7bfaf94b3480e2
7
- data.tar.gz: 65f5e0414ee23f91e539d54b4b1dbabf05dbb8651fe24396c6a13aab2a4f2918b29a3a6eae57bdcae82fde8b0eade4b62ddb68cbf0a1443147af078d9339eec0
6
+ metadata.gz: af37711638ebeb26c868faa0f35df474bdddf8e846744847b47f8bef7a0bc7981ccce6926b7955be9e1104cac583185978e507dd9f1ca087a8d44b97e56b694d
7
+ data.tar.gz: 9c7c586374e48404ba696e6ae13302530ed931af1947aa94910c8bf6bc57c095b04fa525821157d55d995438af7fb6ca238d095be2b565742bfad73067619b71
@@ -26,9 +26,11 @@ module RubyRabbitmqJanus
26
26
 
27
27
  # Restart session
28
28
  def restart_session
29
+ Tools::Log.instance.warn 'Restart session ...'
30
+ janus = find_model
29
31
  @session = response_session
30
32
  response_keepalive
31
- update_model
33
+ janus.set(session: @session)
32
34
  end
33
35
 
34
36
  # Start a timer for TTL
@@ -43,7 +45,7 @@ module RubyRabbitmqJanus
43
45
  end
44
46
 
45
47
  def instance_is_down
46
- janus = update_model
48
+ janus = find_model
47
49
  janus.set(enable: false)
48
50
 
49
51
  Tools::Log.instance.fatal \
@@ -53,7 +55,7 @@ module RubyRabbitmqJanus
53
55
 
54
56
  private
55
57
 
56
- def update_model
58
+ def find_model
57
59
  Models::JanusInstance.find_by_session(@session)
58
60
  end
59
61
 
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.167
4
+ version: 2.2.0.pre.168
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy