mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-27 15:07:06 +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
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -65,7 +65,7 @@ void PipeStream::connect()
|
|||
if (errno == static_cast<int>(std::errc::no_such_file_or_directory))
|
||||
{
|
||||
LOG(ERROR, LOG_TAG) << error << "\n";
|
||||
wait(read_timer_, 200ms, [this] { connect(); });
|
||||
wait(read_timer_, 200ms, [this, self = shared_from_this()] { connect(); });
|
||||
return;
|
||||
}
|
||||
throw SnapException(error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue