celluloid_pubsub 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/celluloid_pubsub/reactor.rb +9 -1
- data/lib/celluloid_pubsub/version.rb +1 -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: f8af88399f5d0b9726e1e25f3fbdee8cba0eeb00
|
4
|
+
data.tar.gz: ab23a3f7d94e986d6c8b9d192a2ce43cff2f3c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54188ddf2711f16d9fd87c5e908cfb2287a8938a72eb55f6e1327fc1c4f36ef44e996e3a0577edd8f052ff1c892106dfde587f879dbcb829052555f717c4bd8d
|
7
|
+
data.tar.gz: cb4698f0a018336126479e367505ce71916039db9e62a3b05441c5b03f4c8210f64ec3ad2901fee4bad66a44cf13845ab48a709963a0ce43d5b25f4c3fe3d6bd
|
@@ -45,11 +45,19 @@ module CelluloidPubsub
|
|
45
45
|
#
|
46
46
|
# :nocov:
|
47
47
|
def run
|
48
|
-
while !@websocket.closed? && message = try_read_websocket
|
48
|
+
while Actor.current.alive? && !@websocket.closed? && message = try_read_websocket
|
49
49
|
handle_websocket_message(message)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
# will try to read the message from the websocket
|
54
|
+
# and if it fails will log the exception if debug is enabled
|
55
|
+
#
|
56
|
+
# @return [void]
|
57
|
+
#
|
58
|
+
# @api public
|
59
|
+
#
|
60
|
+
# :nocov:
|
53
61
|
def try_read_websocket
|
54
62
|
message = nil
|
55
63
|
begin
|