diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 16:51:49 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 16:51:49 +0900 |
commit | 9272be6f787e19a90204faab23f9586e8136ec93 (patch) | |
tree | 349a821f018680f66496fe11ec829d7b00859fef /lib/plum | |
parent | 4efc5600fff89080d312889ad76603903b856faa (diff) | |
download | plum-9272be6f787e19a90204faab23f9586e8136ec93.tar.gz |
client/legacy_session: consume_queue: early return if queue is empty
Diffstat (limited to 'lib/plum')
-rw-r--r-- | lib/plum/client/legacy_client_session.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plum/client/legacy_client_session.rb b/lib/plum/client/legacy_client_session.rb index 731dfc3..bc0c2bb 100644 --- a/lib/plum/client/legacy_client_session.rb +++ b/lib/plum/client/legacy_client_session.rb @@ -43,7 +43,7 @@ module Plum end def consume_queue - return if @response + return if @response || @requests.empty? response, headers, body, cb = @requests.shift headers["host"] = headers[":authority"] || headers["host"] || @config[:hostname] |