async-websocket 0.29.0 → 0.29.1

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: 4289b4859913198c24ca663a119281dd61bb34549e6cfe3cc9b85fe27e31c6ab
4
- data.tar.gz: 651f3364c06bd402877b94a36f2d358ab3cc1167a0aa9dd2c44b3745be04cfe5
3
+ metadata.gz: fe511fe780a41ad4b959d4cc7e34df333da5efb228c17c99387e1a27db14143a
4
+ data.tar.gz: f2839007377898a1dd9a1f1c5adda773c0d70e2f609291d8f31c6c75ea529311
5
5
  SHA512:
6
- metadata.gz: ec78385e62fe64eae8e50e7f8cd70f7f1a317c3a9961d72ac0f33f1682d99fc6bb753ce91611bceaa9cb642edd978dcb6d59ca4dbea978c1b0d9804a934dddb6
7
- data.tar.gz: da98480c126237140e19e45983ce73cb47e949c29078a5d867f694e02eab180e7f707649a0a4f6ad8e6377ea6412faddca63822866e73027995695aaecb12a90
6
+ metadata.gz: 1bec34b54da82f76de3e9b8a5595621af25d9649af11d6b0faa5b5b2c284839be1e6923b5a53d7899b071a82ca35ad977227edae51089e32e73fed48a1fff38c
7
+ data.tar.gz: f3ed9911cf3bf886bfdf69d0c9bcb7f198ecc2eaea01879e65526165f72f36e52db7727359dd645a0af3056ed832961cca28f35f8cb24fea2f18a5026e1326c8
checksums.yaml.gz.sig CHANGED
Binary file
@@ -39,8 +39,9 @@ module Async
39
39
  connection = handler.call(framer, protocol, extensions)
40
40
 
41
41
  yield connection
42
-
43
- connection.close unless connection.closed?
42
+ ensure
43
+ connection&.close
44
+ stream.close
44
45
  end
45
46
 
46
47
  # Once we get to this point, we no longer need to hold on to the request:
@@ -62,9 +62,10 @@ module Async
62
62
 
63
63
  begin
64
64
  yield connection
65
+
65
66
  ensure
66
- connection.close
67
- client.close
67
+ connection&.close
68
+ client&.close
68
69
  end
69
70
  end
70
71
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module WebSocket
8
- VERSION = "0.29.0"
8
+ VERSION = "0.29.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file