em-rtmp 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,12 +175,12 @@ module EventMachine
175
175
  def read_safe(length)
176
176
  raise ArgumentError, "cannot read nothing: #{length}" unless length && length >= 1
177
177
 
178
- loop do
179
- if value = read(length)
180
- return value
181
- else
182
- Logger.error "unable to read from socket"
183
- end
178
+ if value = read(length)
179
+ return value
180
+ else
181
+ Logger.error "unable to read from socket, closing connection"
182
+ close_connection
183
+ ""
184
184
  end
185
185
  end
186
186
 
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module RTMP
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: