~osomon/moovida/gnome_screensaver_fixes

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/gnome/gnome_screensaver_service.py

  • Committer: Olivier Tilloy
  • Date: 2010-02-02 12:53:21 UTC
  • Revision ID: olivier@fluendo.com-20100202125321-c7efjjz1cy5thcto
Do not try to un-inhibit twice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
    def _playback_ended(self, player):
156
156
        self.debug('%s ended playback' % player)
157
157
        # just unInhibit
158
 
        self._un_inhibit()
 
158
        if self._pm_cookie is not None:
 
159
            self._un_inhibit()
159
160
 
160
161
    def _player_status_cb(self, player, status):
161
162
        self.debug("%s changed state to %s" % (player, status))