From 7cb8867021fa0d5a9be77f0bd24869fbf75356d0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 19 Dec 2009 23:38:09 -0800 Subject: Thread*: avoid double close of client socket TeeInput may explicitly close on client disconnects to avoid error messages being written to the socket, likewise with "hack.io" users. --- lib/rainbows/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/base.rb') 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) -- cgit v1.2.3-24-ge0c7