about summary refs log tree commit homepage
path: root/lib/rainbows/xepoll_thread_pool/client.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-10 02:13:55 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-10 02:13:55 +0000
commit7bb7c4469fb744135377d68e7c29cde3fbc635dc (patch)
tree783f8fac006baeae760483e6877dabf69e1054d6 /lib/rainbows/xepoll_thread_pool/client.rb
parent772a5da573a661df6421afa6398b9e4023e77ce4 (diff)
downloadrainbows-7bb7c4469fb744135377d68e7c29cde3fbc635dc.tar.gz
It's easier-to-use in some cases.
Diffstat (limited to 'lib/rainbows/xepoll_thread_pool/client.rb')
-rw-r--r--lib/rainbows/xepoll_thread_pool/client.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/xepoll_thread_pool/client.rb b/lib/rainbows/xepoll_thread_pool/client.rb
index 625d1ac..759202b 100644
--- a/lib/rainbows/xepoll_thread_pool/client.rb
+++ b/lib/rainbows/xepoll_thread_pool/client.rb
@@ -111,8 +111,7 @@ module Rainbows::XEpollThreadPool::Client
       return kato_set
     when String
       kato_delete
-      @hp.buf << buf
-      @hp.parse and return queue!
+      @hp.add_parse(buf) and return queue!
     else
       return close
     end while true