@@ -223,7 +223,7 @@ class SubscriptionMgrControlPoint {
223223 uint64_t subscribe_timeout = 0 ;
224224 uint32_t event_subscription_duration_sec = 3600 ;
225225 uint32_t event_subscription_retry_ms = 0 ;
226- bool event_subscription_active = false ;
226+ bool event_subscription_active = true ;
227227 uint64_t last_event_notify_ms = 0 ; // timestamp of last received NOTIFY
228228 IHttpRequest* p_http = nullptr ;
229229 IUDPService* p_udp = nullptr ;
@@ -368,6 +368,7 @@ class SubscriptionMgrControlPoint {
368368 * failures result in continued attempts for remaining services).
369369 */
370370 bool subscribeToDevice (DLNADeviceInfo& device) {
371+ DlnaLogger.log (DlnaLogLevel::Info, " subscribeToDevice" );
371372 bool ok = true ;
372373 for (auto & service : device.getServices ()) {
373374 if (!subscribeToService (service)) {
@@ -390,6 +391,7 @@ class SubscriptionMgrControlPoint {
390391 * @return true if all unsubscriptions succeeded; false otherwise.
391392 */
392393 bool unsubscribeFromDevice (DLNADeviceInfo& device) {
394+ DlnaLogger.log (DlnaLogLevel::Info, " unsubscribeFromDevice" );
393395 bool ok = true ;
394396 for (auto & service : device.getServices ()) {
395397 if (!unsubscribeFromService (service)) {
@@ -539,10 +541,6 @@ class SubscriptionMgrControlPoint {
539541 // read SID header and body
540542 const char * sid = client.requestHeader ().get (" SID" );
541543
542- // Use XMLParserPrint to incrementally parse the NOTIFY body and extract
543- // property child elements. XMLParserPrint accumulates the buffer and
544- // exposes a parse() method that returns the next fragment.
545-
546544 // mark notify received early so subscription metadata gets updated
547545 mgr->updateReceived (sid);
548546
0 commit comments