em-rtmp 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-rtmp/connection.rb +14 -12
- data/lib/em-rtmp/version.rb +1 -1
- metadata +2 -2
data/lib/em-rtmp/connection.rb
CHANGED
@@ -148,19 +148,21 @@ module EventMachine
|
|
148
148
|
loop do
|
149
149
|
break if bytes_waiting < 1
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
151
|
+
begin
|
152
|
+
case state
|
153
|
+
when :handshake
|
154
|
+
if @handshake.buffer_changed == :handshake_complete
|
155
|
+
@handshake = nil
|
156
|
+
change_state :handshake_complete
|
157
|
+
end
|
158
|
+
break
|
159
|
+
when :handshake_complete, :ready
|
160
|
+
@response_router.buffer_changed
|
161
|
+
next
|
157
162
|
end
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
@response_router.buffer_changed
|
162
|
-
next
|
163
|
-
|
163
|
+
rescue NoMethodError, TypeError, RuntimeError => e
|
164
|
+
Logger.error "failure: #{e}"
|
165
|
+
retry
|
164
166
|
end
|
165
167
|
end
|
166
168
|
|
data/lib/em-rtmp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-rtmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|