Remove outdated compatibility code

This commit is contained in:
caryoscelus 2024-03-31 16:21:52 +00:00
parent 41ebf510cb
commit 33436f7eb6
No known key found for this signature in database
GPG key ID: 254EDDB85B66CB1F

View file

@ -12,13 +12,6 @@ def startupError(msg):
# Third party modules
import gevent
if gevent.version_info.major <= 1: # Workaround for random crash when libuv used with threads
try:
if "libev" not in str(gevent.config.loop):
gevent.config.loop = "libev-cext"
except Exception as err:
startupError("Unable to switch gevent loop to libev: %s" % err)
import gevent.monkey
gevent.monkey.patch_all(thread=False, subprocess=False)