From 7a0dd2d3aec9844bc55df7523614361e800088c0 Mon Sep 17 00:00:00 2001 From: janbar Date: Sat, 30 Nov 2019 01:08:55 +0100 Subject: [PATCH] fix bad assignment of controllerLocalUri --- noson/src/sonosplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noson/src/sonosplayer.cpp b/noson/src/sonosplayer.cpp index 11d9313..f629ec6 100644 --- a/noson/src/sonosplayer.cpp +++ b/noson/src/sonosplayer.cpp @@ -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); } @@ -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;