[Audio] More robust startup and unload (#2118)

* More robust cleanup for audio and streams

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>

* Remove copied code from streams

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
Toby Harradine
2018-09-22 15:04:46 +10:00
committed by GitHub
parent 51c83d958c
commit df922a0e3e
3 changed files with 22 additions and 8 deletions

View File

@@ -666,3 +666,5 @@ class Streams:
def __unload(self):
if self.task:
self.task.cancel()
__del__ = __unload