aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/client/connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plum/client/connection.rb')
-rw-r--r--lib/plum/client/connection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plum/client/connection.rb b/lib/plum/client/connection.rb
index 26e53b3..c244df9 100644
--- a/lib/plum/client/connection.rb
+++ b/lib/plum/client/connection.rb
@@ -12,7 +12,7 @@ module Plum
# Create a new stream for HTTP request.
def open_stream
- next_id = @max_stream_id + (@max_stream_id.even? ? 1 : 2)
+ next_id = @max_stream_ids[1] + 2
stream(next_id)
end
end