mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-09 14:21:42 +02:00
Fix crash while calling Stream.RemoveStream
This commit is contained in:
parent
61bda79158
commit
780d8f3f1a
6 changed files with 20 additions and 19 deletions
|
@ -145,7 +145,8 @@ void ProcessStream::onStderrMsg(const std::string& line)
|
|||
void ProcessStream::stderrReadLine()
|
||||
{
|
||||
const std::string delimiter = "\n";
|
||||
boost::asio::async_read_until(*stream_stderr_, streambuf_stderr_, delimiter, [this, delimiter](const std::error_code& ec, std::size_t bytes_transferred)
|
||||
boost::asio::async_read_until(*stream_stderr_, streambuf_stderr_, delimiter,
|
||||
[this, self = shared_from_this(), delimiter](const std::error_code& ec, std::size_t bytes_transferred)
|
||||
{
|
||||
if (ec)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue