When unwrapping in set_backlog_size, do not add a spurious Metacube header.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:25:24 +0000 (14:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:25:24 +0000 (14:25 +0200)
stream.cpp

index ab08a0f..5ea2cd0 100644 (file)
@@ -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)