mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
Fix invalid access after async initiation
This commit is contained in:
@ -121,9 +121,9 @@ operator()(error_code ec, bool again)
|
|||||||
auto const fin = d.remain <= 0;
|
auto const fin = d.remain <= 0;
|
||||||
if(fin)
|
if(fin)
|
||||||
d.state = 99;
|
d.state = 99;
|
||||||
d.ws.async_write_frame(fin,
|
auto const pb = prepare_buffers(n, d.cb);
|
||||||
prepare_buffers(n, d.cb), std::move(*this));
|
|
||||||
d.cb.consume(n);
|
d.cb.consume(n);
|
||||||
|
d.ws.async_write_frame(fin, pb, std::move(*this));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user