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 +4 -4
- data/lib/rrj/janus/processus/keepalive/keepalive_thread.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ab718211520db84737cd39018586e63a8d5ca7
|
4
|
+
data.tar.gz: 112173d694338be0fa7452cf4b16c819ae96e939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|