mirror of https://github.com/zulip/zulip.git
tornado: Fix populate_db failing to call send_event properly.
This isn't the right long-term fix; theoretically, send_event shouldn't be doing anything with populate_db, but that's for later.
This commit is contained in:
parent
5902a573be
commit
40ff41e135
|
@ -3,6 +3,8 @@ from django.conf import settings
|
|||
from zerver.models import Realm
|
||||
|
||||
def get_tornado_port(realm: Realm) -> int:
|
||||
if settings.TORNADO_SERVER is None:
|
||||
return 9993
|
||||
if settings.TORNADO_PROCESSES == 1:
|
||||
return int(settings.TORNADO_SERVER.split(":")[-1])
|
||||
return 9993
|
||||
|
|
Loading…
Reference in New Issue