about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-21 17:27:25 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-21 17:33:36 -0800
commit9719da13b8aabeabbf2eebc37f127e88550c3121 (patch)
tree252865bb9d96cde7286ae1c1307d83cb9b52acd2
parent97d8f9b49e3f4637c7c573a971cdbc54b5698dce (diff)
downloadrainbows-9719da13b8aabeabbf2eebc37f127e88550c3121.tar.gz
We'll override it, maybe...
-rw-r--r--lib/rainbows/epoll/client.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb
index 0b04193..490f38b 100644
--- a/lib/rainbows/epoll/client.rb
+++ b/lib/rainbows/epoll/client.rb
@@ -158,6 +158,10 @@ module Rainbows::Epoll::Client
   def close
     @wr_queue.each { |x| x.respond_to?(:close) and x.close rescue nil }
     super
+    on_close
+  end
+
+  def on_close
     KATO.delete(self)
     Server.decr
   end