about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
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)