mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd::server: Fix these assertions.
This commit is contained in:
parent
f1d659a6c0
commit
72bacdedf6
1 changed files with 4 additions and 3 deletions
|
@ -1648,12 +1648,13 @@ ircd::server::tag::wrote_buffer(const const_buffer &buffer)
|
|||
|
||||
if(written <= size(req.out.head))
|
||||
{
|
||||
assert(data(buffer) == data(req.out.head));
|
||||
assert(written <= size(req.out.head));
|
||||
assert(data(buffer) >= begin(req.out.head));
|
||||
assert(data(buffer) < end(req.out.head));
|
||||
}
|
||||
else if(written <= size(req.out.head) + size(req.out.content))
|
||||
{
|
||||
assert(data(buffer) == data(req.out.content));
|
||||
assert(data(buffer) >= begin(req.out.content));
|
||||
assert(data(buffer) < end(req.out.content));
|
||||
assert(written <= write_total());
|
||||
|
||||
// Invoke the user's optional progress callback; this function
|
||||
|
|
Loading…
Reference in a new issue