Delete audio stream after successful playback.

This commit is contained in:
Bill Dengler 2015-05-13 23:55:23 -04:00
parent 6250e16cfe
commit f0e1f74d03

View File

@ -131,7 +131,7 @@ class URLStream(object):
self.stream.volume = float(volume) self.stream.volume = float(volume)
self.stream.play() self.stream.play()
log.debug("played") log.debug("played")
del self.stream
def is_playable(self, url,play=False,volume=1.0): def is_playable(self, url,play=False,volume=1.0):
try: try:
log.debug("Checking URL playability...") log.debug("Checking URL playability...")