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 +4 -4
- data/lib/rrj/janus/processus/keepalive/keepalive_thread.rb +5 -3
- 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: bcee5bf099562f3a0a8431e60d7e77fe85e23f16
|
4
|
+
data.tar.gz: 5a1a65931777107fa7ba4a1d86a1f66257881ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =
|
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
|
58
|
+
def find_model
|
57
59
|
Models::JanusInstance.find_by_session(@session)
|
58
60
|
end
|
59
61
|
|