Skip to content

Commit

Permalink
fix bad assignment of controllerLocalUri
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Nov 30, 2019
1 parent 08b97d3 commit 7a0dd2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noson/src/sonosplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ Player::Player(const ZonePtr& zone, System* system, void* CBHandle, EventCB even
, m_contentDirectory(nullptr)
, m_subscriptionPool()
{
m_controllerLocalUri.assign(ProtocolTable[Protocol_http])
.append("://").append(m_eventHandler.GetAddress())
.append(":").append(std::to_string(m_eventHandler.GetPort()));
m_valid = Init(system);
}

Expand Down Expand Up @@ -140,6 +137,9 @@ bool Player::Init(System* system)
m_devicePort = cinfo->GetPort();

m_eventHandler = system->m_eventHandler;
m_controllerLocalUri.assign(ProtocolTable[Protocol_http])
.append("://").append(m_eventHandler.GetAddress())
.append(":").append(std::to_string(m_eventHandler.GetPort()));
m_subscriptionPool = system->m_subscriptionPool;

TcpSocket sock;
Expand Down

0 comments on commit 7a0dd2d

Please sign in to comment.