Remove uvloop support, causes issues

This commit is contained in:
miruka
2020-05-20 23:56:19 -04:00
parent e128471628
commit 07701ae880
6 changed files with 3 additions and 24 deletions

View File

@@ -1,7 +1,5 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
"""Install `uvloop` if possible and provide a `QMLBridge`."""
# WARNING: make sure to not top-level import the media_cache module here,
# directly or indirectly via another module import (e.g. backend).
# See https://stackoverflow.com/a/55918049
@@ -18,13 +16,6 @@ from typing import Coroutine, Sequence
from .pyotherside_events import CoroutineDone, LoopException
try:
import uvloop
except ModuleNotFoundError:
log.warning("uvloop module not found, using slower default asyncio loop")
else:
uvloop.install()
class QMLBridge:
"""Setup asyncio and provide synchronous methods to call coroutines.