mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 08:56:18 +02:00
Move logic from StreamServer into new Server class
This commit is contained in:
parent
bd19c51d58
commit
d52015ff09
11 changed files with 912 additions and 713 deletions
|
@ -49,13 +49,13 @@ void ControlSessionWebsocket::start()
|
|||
|
||||
void ControlSessionWebsocket::stop()
|
||||
{
|
||||
if (ws_.is_open())
|
||||
{
|
||||
boost::beast::error_code ec;
|
||||
ws_.close(beast::websocket::close_code::normal, ec);
|
||||
if (ec)
|
||||
LOG(ERROR, LOG_TAG) << "Error in socket close: " << ec.message() << "\n";
|
||||
}
|
||||
// if (ws_.is_open())
|
||||
// {
|
||||
// boost::beast::error_code ec;
|
||||
// ws_.close(beast::websocket::close_code::normal, ec);
|
||||
// if (ec)
|
||||
// LOG(ERROR, LOG_TAG) << "Error in socket close: " << ec.message() << "\n";
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue