diff options
author | Eric Wong <e@80x24.org> | 2016-01-22 10:18:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-22 10:18:07 +0000 |
commit | ccbb0f705f6f29269e0e8964ecff484b73e62863 (patch) | |
tree | 6446e947339cb40747275cb5eccc4267345be31a /lib/dtas/server_loop.rb | |
parent | de8d11790c6c20cda59ec14f4188cfbbba6b9eb2 (diff) | |
download | dtas-ccbb0f705f6f29269e0e8964ecff484b73e62863.tar.gz |
Diffstat (limited to 'lib/dtas/server_loop.rb')
-rw-r--r-- | lib/dtas/server_loop.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/dtas/server_loop.rb b/lib/dtas/server_loop.rb index f0936aa..d4e56b3 100644 --- a/lib/dtas/server_loop.rb +++ b/lib/dtas/server_loop.rb @@ -1,5 +1,6 @@ -# Copyright (C) 2015 all contributors <dtas-all@nongnu.org> -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (C) 2015-2016 all contributors <dtas-all@nongnu.org> +# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> +# frozen_string_literal: true require_relative '../dtas' @@ -8,7 +9,7 @@ class DTAS::ServerLoop def initialize(listeners, client_class) @rd = {} @wr = {} - @rbuf = '' + @rbuf = ''.b @client_class = client_class listeners.each { |l| @rd[l] = true } end |