mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +00:00
Use create_task
instead of ensure_future
to create broadcast task
This commit is contained in:
parent
d6c73fc6d6
commit
42a3cefe80
@ -54,8 +54,7 @@ class SoundStudio:
|
|||||||
async def start_broadcasting(self):
|
async def start_broadcasting(self):
|
||||||
if not self.broadcasting:
|
if not self.broadcasting:
|
||||||
self.broadcasting = True
|
self.broadcasting = True
|
||||||
loop = asyncio.get_event_loop()
|
asyncio.create_task(self.broadcast_tracks())
|
||||||
asyncio.ensure_future(self.broadcast_tracks(), loop=loop)
|
|
||||||
|
|
||||||
async def stop_broadcasting(self):
|
async def stop_broadcasting(self):
|
||||||
if self.broadcasting:
|
if self.broadcasting:
|
||||||
|
Loading…
Reference in New Issue
Block a user