release PluginManager._fired_events if they are done

pull/8/head
Chifeng Chou 2016-11-17 12:28:09 +08:00
rodzic 3c40a3f27d
commit 488ff01041
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -142,6 +142,7 @@ class PluginManager:
if tasks:
yield from asyncio.wait(tasks, loop=self._loop)
else:
self._fired_events = [e for e in self._fired_events if not e.done()]
self._fired_events.extend(tasks)
@asyncio.coroutine