Working on bug in leaving

This commit is contained in:
Logan Cusano
2022-02-27 19:09:48 -05:00
parent 6ad489183f
commit ba237d2d53
2 changed files with 12 additions and 8 deletions

View File

@@ -28,12 +28,12 @@ class PCMStream:
self.stream.close(ignore_errors=True)
# Stops the current running stream but does not destroy it
def pause(self):
async def pause(self):
if self.stream.active:
self.stream.stop(ignore_errors=True)
# Plays the stream
def play(self):
async def play(self):
if not self.stream.active:
self.stream.start()