diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-10 02:13:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-10 02:13:55 +0000 |
commit | 7bb7c4469fb744135377d68e7c29cde3fbc635dc (patch) | |
tree | 783f8fac006baeae760483e6877dabf69e1054d6 /lib/rainbows/xepoll_thread_spawn | |
parent | 772a5da573a661df6421afa6398b9e4023e77ce4 (diff) | |
download | rainbows-7bb7c4469fb744135377d68e7c29cde3fbc635dc.tar.gz |
It's easier-to-use in some cases.
Diffstat (limited to 'lib/rainbows/xepoll_thread_spawn')
-rw-r--r-- | lib/rainbows/xepoll_thread_spawn/client.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index c6f2301..1d3a280 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -95,8 +95,7 @@ module Rainbows::XEpollThreadSpawn::Client return kato_set when String kato_delete - @hp.buf << buf - env = @hp.parse and return spawn(env, @hp) + env = @hp.add_parse(buf) and return spawn(env, @hp) else return close end while true @@ -115,8 +114,7 @@ module Rainbows::XEpollThreadSpawn::Client kato_set return false when String - hp.buf << buf - hp.parse and return true + hp.add_parse(buf) and return true # continue loop else return close |