We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c347ebe + 0fbcc14 commit 01e3366Copy full SHA for 01e3366
src/brotli.cpp
@@ -74,7 +74,9 @@ int brotli_output_buffer::written() const { return bytes_in; }
74
75
int brotli_output_buffer::flush() noexcept {
76
77
- assert(!flushed); // brotli does not support multiple flush operations
+ if (flushed) { // brotli does not support multiple flush operations
78
+ return 0;
79
+ }
80
81
compress(nullptr, 0, true);
82
flushed = true;
0 commit comments