diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-19 23:38:09 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-19 23:38:09 -0800 |
commit | 7cb8867021fa0d5a9be77f0bd24869fbf75356d0 (patch) | |
tree | c1f0518407f7e205c240daecb73ed825357190d8 /lib/rainbows/base.rb | |
parent | 8abddc7b98f24ab603414b74cac9b1730dd277d7 (diff) | |
download | rainbows-7cb8867021fa0d5a9be77f0bd24869fbf75356d0.tar.gz |
TeeInput may explicitly close on client disconnects to avoid error messages being written to the socket, likewise with "hack.io" users.
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r-- | lib/rainbows/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index 547cd6f..211b41c 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -62,7 +62,7 @@ module Rainbows rescue => e Error.write(client, e) ensure - client.close + client.close unless client.closed? end def self.included(klass) |