mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +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;
|
||||
if(fin)
|
||||
d.state = 99;
|
||||
d.ws.async_write_frame(fin,
|
||||
prepare_buffers(n, d.cb), std::move(*this));
|
||||
auto const pb = prepare_buffers(n, d.cb);
|
||||
d.cb.consume(n);
|
||||
d.ws.async_write_frame(fin, pb, std::move(*this));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user