diff options
Diffstat (limited to 'lib/plum/stream.rb')
-rw-r--r-- | lib/plum/stream.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/plum/stream.rb b/lib/plum/stream.rb index 04190fc..4cb2285 100644 --- a/lib/plum/stream.rb +++ b/lib/plum/stream.rb @@ -237,11 +237,7 @@ module Plum @state = :closed # MUST NOT send RST_STREAM error_code = frame.payload.uint32 - if error_code > 0 - raise LocalStreamError.new(HTTPError::ERROR_CODES.key(error_code)) - else - callback(:rst_stream, frame) - end + callback(:rst_stream, HTTPError::ERROR_CODES.key(error_code)) end # override EventEmitter |