Fix fudge-ups when replacing emitter/ws with bus (#1763)

A couple of instances in the mpg123 audio backend didn't contain 'self.', this resolves those allowing the backend to be used again.
pull/1765/head
Åke 2018-08-27 11:13:24 +02:00 committed by Steve Penrod
parent 1d4297d33c
commit 1e17caa928
1 changed files with 2 additions and 2 deletions

View File

@ -76,14 +76,14 @@ class Mpg123Service(AudioBackend):
self.index += 1
# if there are more tracks available play next
if self.index < len(self.tracks):
bus.emit(Message('Mpg123ServicePlay'))
self.bus.emit(Message('Mpg123ServicePlay'))
else:
self._is_playing = False
def play(self):
LOG.info('Call Mpg123ServicePlay')
self.index = 0
bus.emit(Message('Mpg123ServicePlay'))
self.bus.emit(Message('Mpg123ServicePlay'))
def stop(self):
LOG.info('Mpg123ServiceStop')