kopia lustrzana https://github.com/Yakifo/amqtt
release PluginManager._fired_events if they are done
rodzic
3c40a3f27d
commit
488ff01041
|
@ -142,6 +142,7 @@ class PluginManager:
|
||||||
if tasks:
|
if tasks:
|
||||||
yield from asyncio.wait(tasks, loop=self._loop)
|
yield from asyncio.wait(tasks, loop=self._loop)
|
||||||
else:
|
else:
|
||||||
|
self._fired_events = [e for e in self._fired_events if not e.done()]
|
||||||
self._fired_events.extend(tasks)
|
self._fired_events.extend(tasks)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
|
Ładowanie…
Reference in New Issue