about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-19 23:38:09 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-19 23:38:09 -0800
commit7cb8867021fa0d5a9be77f0bd24869fbf75356d0 (patch)
treec1f0518407f7e205c240daecb73ed825357190d8 /lib/rainbows/base.rb
parent8abddc7b98f24ab603414b74cac9b1730dd277d7 (diff)
downloadrainbows-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.rb2
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)