Remember to turn off has_metacube_header once we have consumed a block.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 00:22:49 +0000 (02:22 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 00:22:49 +0000 (02:22 +0200)
input.cpp

index a1b71d6..4846566 100644 (file)
--- a/input.cpp
+++ b/input.cpp
@@ -136,6 +136,7 @@ void Input::curl_callback(char *ptr, size_t bytes)
                // should we have many blocks, but these routines don't need to be too efficient
                // anyway.
                pending_data.erase(pending_data.begin(), pending_data.begin() + sizeof(metacube_block_header) + size);
+               has_metacube_header = false;
        }
 }