tiny_tcp_service 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_tcp_service.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 705433100d134e1b65ea922d21ced51f6429570bdc86aeaba322765c6e4d0cf3
|
4
|
+
data.tar.gz: 3ab6c3c0510341c0e3bb26180a6baf0576570c0e96b1f6b12cf0ab4c38357521
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ca44ed886b5d9edca59455d6a88cc8f43904c0a3c139596d5656f47f0d431dcc621f1329d178cea0be775f2caf19f9fe7db5b850edc99ae4d9860a3c5d01b9
|
7
|
+
data.tar.gz: 8b862c075f947a468ce8c42bc6e2fe0de03eb7e37011bed1da0de6bb2af4ece354a6a37ee6aaa09b5af72380b96e56c9093efaffa8d588e471c97cfac8efb209
|
data/lib/tiny_tcp_service.rb
CHANGED
@@ -90,7 +90,7 @@ class TinyTCPService
|
|
90
90
|
readable, _, errored = IO.select(@clients, nil, @clients, 1)
|
91
91
|
readable&.each do |c|
|
92
92
|
begin
|
93
|
-
@msg_handler&.call(c.gets.chomp)
|
93
|
+
c.puts(@msg_handler&.call(c.gets.chomp))
|
94
94
|
rescue TinyTCPService::BadClient => e
|
95
95
|
_remove_client!(c)
|
96
96
|
rescue => e
|