~ubuntu-branches/ubuntu/jaunty/coherence/jaunty

« back to all changes in this revision

Viewing changes to coherence/upnp/devices/basics.py

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2008-07-13 15:18:54 UTC
  • mfrom: (1.1.4 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080713151854-3i4pvo3xeg9wzcsu
Tags: 0.5.8-1
* New upstream release
* debian/control:
  - add a Homepage field
  - complete Depends with python-nose (Closes: #489198)
  - complete Depends for the mediadb backend (Ubuntu report 235910)

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
                device_version -= 1
194
194
 
195
195
    def unregister(self):
 
196
 
 
197
        if self.backend != None and hasattr(self.backend,'release'):
 
198
            self.backend.release()
 
199
 
 
200
        if not hasattr(self,'_services'):
 
201
            """ seems we never made it to actually
 
202
                completing that device
 
203
            """
 
204
            return
 
205
 
 
206
        for service in self._services:
 
207
            try:
 
208
                service.check_subscribers_loop.stop()
 
209
            except:
 
210
                pass
 
211
            if hasattr(service,'check_moderated_loop') and service.check_moderated_loop != None:
 
212
                try:
 
213
                    service.check_moderated_loop.stop()
 
214
                except:
 
215
                    pass
 
216
            if hasattr(service,'release'):
 
217
                service.release()
 
218
            if hasattr(service,'_release'):
 
219
                service._release()
 
220
 
196
221
        s = self.coherence.ssdp_server
197
222
        uuid = str(self.uuid)
198
223
        self.coherence.remove_web_resource(uuid[5:])