summary refs log tree commit diff
path: root/synapse/app/_base.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:37:01 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:37:01 +0100
commit9273535ade36fb6580a0ff27a4f836ea8ca9a52e (patch)
tree01dac05456dc5e8a321142d4235c9406d498a6f9 /synapse/app/_base.py
parentMerge commit '9c715a5f1' into anoa/dinsic_release_1_31_0 (diff)
parentMerge branch 'social_login' into develop (diff)
downloadsynapse-9273535ade36fb6580a0ff27a4f836ea8ca9a52e.tar.xz
Merge commit '18ab35284' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/app/_base.py')
-rw-r--r--synapse/app/_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py

index 395e202b89..9840a9d55b 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py
@@ -16,6 +16,7 @@ import gc import logging import os +import platform import signal import socket import sys @@ -339,7 +340,7 @@ async def start(hs: "synapse.server.HomeServer", listeners: Iterable[ListenerCon # rest of time. Doing so means less work each GC (hopefully). # # This only works on Python 3.7 - if sys.version_info >= (3, 7): + if platform.python_implementation() == "CPython" and sys.version_info >= (3, 7): gc.collect() gc.freeze()