Hotfix executor pool size (#4552)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2016-11-24 14:53:46 -08:00
1 parent b6b9da7e6e
commit 8c56091af7
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ class HomeAssistant(object):
else:
self.loop = loop or asyncio.get_event_loop()
self.executor = ThreadPoolExecutor(max_workers=5)
self.executor = ThreadPoolExecutor(max_workers=EXECUTOR_POOL_SIZE)
self.loop.set_default_executor(self.executor)
self.loop.set_exception_handler(self._async_exception_handler)
self._pending_tasks = []