rsmp 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp/supervisor.rb +6 -1
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a60faacf7dbd02175c26ff74a0576bcba1eae29d7ac53973ed4991a8952d94d3
|
4
|
+
data.tar.gz: dffbf77a1385be65a90e1b6ebd8edd8a109bd27ee54eeee5d9d3651c64f10abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a117f1ddeb790ff61d550359bfa28445b13322b66155c6f213035c7a4f01c27cecb0ea1229c2891125e26e06a54314b9fd8f1002b36bd2c8925daa5f630225e7
|
7
|
+
data.tar.gz: 6e6f9a2e1da0296d9f635b5e07fb74efecaa84b819a7ac16fea84c144a1d48804a3582e4e39de367c5d7fc0ba23da83e30e6650af907848fbc81b309d123dd90
|
data/Gemfile.lock
CHANGED
data/lib/rsmp/supervisor.rb
CHANGED
@@ -172,7 +172,12 @@ module RSMP
|
|
172
172
|
id = peek_version_message protocol
|
173
173
|
proxy = find_site id
|
174
174
|
if proxy
|
175
|
-
proxy.
|
175
|
+
if proxy.connected?
|
176
|
+
raise ConnectionError.new("Site #{id} alredy connected from port #{proxy.port}")
|
177
|
+
else
|
178
|
+
p proxy.state
|
179
|
+
proxy.revive settings
|
180
|
+
end
|
176
181
|
else
|
177
182
|
check_max_sites
|
178
183
|
proxy = build_proxy settings.merge(site_id:id) # keep the id learned by peeking above
|
data/lib/rsmp/version.rb
CHANGED