Modify the location of the import of link_play

... to reduce unnecessary imports (both link_play and cryptography)
This commit is contained in:
LY
2022-04-16 18:29:40 +08:00
committed by GitHub
parent e8c15f5069
commit 409c2c032b

View File

@@ -17,7 +17,6 @@ import server.arcpurchase
import server.init
import server.character
import server.arclinkplay
from udpserver.udp_main import link_play
import os
import sys
from multiprocessing import Process, Pipe, set_start_method
@@ -880,6 +879,7 @@ def main():
app.logger.info('Complete!')
if Config.UDP_PORT and Config.UDP_PORT != '':
from udpserver.udp_main import link_play
process = [Process(target=link_play, args=(
conn2, Config.HOST, int(Config.UDP_PORT)))]
[p.start() for p in process]