From: Steinar H. Gunderson Date: Sat, 20 Apr 2013 12:25:24 +0000 (+0200) Subject: When unwrapping in set_backlog_size, do not add a spurious Metacube header. X-Git-Tag: 1.0.0~56 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=7c26826d3c485f4f18a6c427f520dc470e68f94a;hp=5179ad190827a75ee096f2cc92d3f0d8837eff72 When unwrapping in set_backlog_size, do not add a spurious Metacube header. --- diff --git a/stream.cpp b/stream.cpp index ab08a0f..5ea2cd0 100644 --- a/stream.cpp +++ b/stream.cpp @@ -111,7 +111,7 @@ void Stream::set_backlog_size(size_t new_size) // Now cheat a bit by rewinding, and adding all the old data back. bytes_received -= existing_data.size(); - add_data(existing_data.data(), existing_data.size()); + add_data_raw(existing_data.data(), existing_data.size()); } void Stream::put_client_to_sleep(Client *client)