Only remove UPnP Events subscription once it is no longer in use by any active services
authorRich Tibbett <richt@opera.com>
Tue, 05 Feb 2013 15:21:33 +0100
changeset 37889d1cef16d35
parent 377 a311e7fe116c
child 379 7a9a351e1577
Only remove UPnP Events subscription once it is no longer in use by any active services
discovery-api/Overview.src.html
     1.1 --- a/discovery-api/Overview.src.html	Tue Feb 05 13:20:57 2013 +0100
     1.2 +++ b/discovery-api/Overview.src.html	Tue Feb 05 15:21:33 2013 +0100
     1.3 @@ -1094,11 +1094,7 @@
     1.4              identifier</var> then skip any remaining sub-steps for the current <var>existing service record</var> and
     1.5              continue at the next available <var>existing service record</var>.
     1.6              </li>
     1.7 -            <li>If the <var>existing service record</var>'s <code>type</code> property begins with the DOMString
     1.8 -            "<code>upnp:</code>" and <var>existing service record</var>'s <code>eventsURL</code> property is set then
     1.9 -            run the rule to <a>terminate an existing UPnP Events Subscription</a>, if one is currently active (as a
    1.10 -            result of having previously called <a>setup a UPnP Events Subscription</a> against the current
    1.11 -            <var>existing service record</var>).
    1.12 +            <li>Let <var>'service type in use' flag</var> be <code>false</code>.
    1.13              </li>
    1.14              <li>For each <var>service manager</var> in the <a>list of active service managers</a> run the following
    1.15              steps:
    1.16 @@ -1128,8 +1124,9 @@
    1.17                      <var>requested control type</var> then abort any remaining sub-steps and continue at the next
    1.18                      available <var>requested control type</var>.
    1.19                      </li>
    1.20 -                    <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code>, abort
    1.21 -                    any remaining sub-steps and continue.
    1.22 +                    <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code> and the
    1.23 +                    <var>'service type in use' flag</var> to <code>true</code>, abort any remaining sub-steps and
    1.24 +                    continue.
    1.25                      </li>
    1.26                    </ol>
    1.27                  </li>
    1.28 @@ -1146,6 +1143,12 @@
    1.29                  </li>
    1.30                </ol>
    1.31              </li>
    1.32 +            <li>If the <var>'service type in use' flag</var> is <code>false</code> and the <var>existing service
    1.33 +            record</var>'s <code>type</code> property begins with the DOMString "<code>upnp:</code>" and <var>existing
    1.34 +            service record</var>'s <code>eventsURL</code> property is set then run the rule to <a>terminate an existing
    1.35 +            UPnP Events Subscription</a>, if one is currently active (as a result of having previously called <a>setup
    1.36 +            a UPnP Events Subscription</a> against the current <var>existing service record</var>).
    1.37 +            </li>
    1.38              <li>Remove <var>existing service record</var> from the current <a>list of available service records</a>.
    1.39              </li>
    1.40            </ol>