mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 12:06:15 +02:00
code blocks
git-svn-id: svn://elaine/murooma/trunk@271 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
2cf7855261
commit
16ef1ae634
53 changed files with 2074 additions and 1759 deletions
|
@ -11,25 +11,25 @@ using namespace std;
|
|||
|
||||
ServerConnection::ServerConnection(MessageReceiver* _receiver, std::shared_ptr<tcp::socket> _socket) : SocketConnection(_receiver)
|
||||
{
|
||||
socket = _socket;
|
||||
socket = _socket;
|
||||
}
|
||||
|
||||
|
||||
void ServerConnection::worker()
|
||||
{
|
||||
active_ = true;
|
||||
try
|
||||
{
|
||||
while (active_)
|
||||
{
|
||||
getNextMessage();
|
||||
}
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
cout << kLogNotice << "Exception: " << e.what() << ", trying to reconnect" << std::endl;
|
||||
}
|
||||
active_ = false;
|
||||
active_ = true;
|
||||
try
|
||||
{
|
||||
while (active_)
|
||||
{
|
||||
getNextMessage();
|
||||
}
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
cout << kLogNotice << "Exception: " << e.what() << ", trying to reconnect" << std::endl;
|
||||
}
|
||||
active_ = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue