protocol-http2 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62e14f9b0bcdddd080367d473e9241575553bab2bb4839c87d8151ff64e0c3fa
4
- data.tar.gz: 6683dd38d00845b4548271032bd3d427c563f4440b72bbec7a4f1083ae850cfc
3
+ metadata.gz: 3804b632aed95639b5419e3c820cabec9215529857cd79677c18205c422b414b
4
+ data.tar.gz: 70115165178dcefc7f051b0b942c888f671a7dfca234ffea84b5ff777c664630
5
5
  SHA512:
6
- metadata.gz: b2e9e50a727eb8e7139b498e3accd1b63bc96d4ba30f534add1052f9ea45b5d5a42f24b7efc44a7edf97b473ec13433a98b3a52af77582033d7953e9907aa3da
7
- data.tar.gz: ab63ce654af74f7d13373a9510e8fb070fd8ef031bc6dbae20295a9022a6ed93c7cf7c7db1ef8077caabca14c10cc42ecea48579b3df44e0192de1673d47fd5b
6
+ metadata.gz: 2f90028dd959770c9c0bd7ab87b7ba90c0dd8f606b789e5945e1a3a83a093563aae90ef6d040e51e79f56c36b0a0a84963981eff4c7f5f7f506a726aa458f5c6
7
+ data.tar.gz: 879811513eae58d31d6e9b547e2c19cac2796b8248397b32c91f62714a6169853f6768925a1606620404c2f56dbe6834b7330f5b1399b5b2cc34c1c27ef91e2a
@@ -112,9 +112,12 @@ module Protocol
112
112
  def close(error = nil)
113
113
  # The underlying socket may already be closed by this point.
114
114
  @streams.each_value{|stream| stream.close(error)}
115
+ @streams.clear
115
116
 
116
- @framer.close
117
- @framer = nil
117
+ if @framer
118
+ @framer.close
119
+ @framer = nil
120
+ end
118
121
  end
119
122
 
120
123
  def encode_headers(headers, buffer = String.new.b)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP2
23
- VERSION = "0.13.1"
23
+ VERSION = "0.13.2"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams