mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
bugfix
This commit is contained in:
parent
acd70148fe
commit
ead110ccae
1 changed files with 4 additions and 4 deletions
|
@ -177,16 +177,16 @@ void Controller::worker()
|
||||||
{
|
{
|
||||||
active_ = true;
|
active_ = true;
|
||||||
|
|
||||||
string macAddress = clientConnection_->getMacAddress();
|
|
||||||
if (hostId_.empty())
|
|
||||||
hostId_ = ::getHostId(macAddress);
|
|
||||||
|
|
||||||
while (active_)
|
while (active_)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
clientConnection_->start();
|
clientConnection_->start();
|
||||||
|
|
||||||
|
string macAddress = clientConnection_->getMacAddress();
|
||||||
|
if (hostId_.empty())
|
||||||
|
hostId_ = ::getHostId(macAddress);
|
||||||
|
|
||||||
/// Say hello to the server
|
/// Say hello to the server
|
||||||
msg::Hello hello(macAddress, hostId_, instance_);
|
msg::Hello hello(macAddress, hostId_, instance_);
|
||||||
clientConnection_->send(&hello);
|
clientConnection_->send(&hello);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue