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.
@@ -148,19 +148,21 @@ module EventMachine
148
148
  loop do
149
149
  break if bytes_waiting < 1
150
150
 
151
- case state
152
-
153
- when :handshake
154
- if @handshake.buffer_changed == :handshake_complete
155
- @handshake = nil
156
- change_state :handshake_complete
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
- break
159
-
160
- when :handshake_complete, :ready
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
 
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module RTMP
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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-07-23 00:00:00.000000000 Z
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine