mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-11 02:17:28 +08:00
Modify the location of the import of link_play
... to reduce unnecessary imports (both link_play and cryptography)
This commit is contained in:
@@ -17,7 +17,6 @@ import server.arcpurchase
|
|||||||
import server.init
|
import server.init
|
||||||
import server.character
|
import server.character
|
||||||
import server.arclinkplay
|
import server.arclinkplay
|
||||||
from udpserver.udp_main import link_play
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from multiprocessing import Process, Pipe, set_start_method
|
from multiprocessing import Process, Pipe, set_start_method
|
||||||
@@ -880,6 +879,7 @@ def main():
|
|||||||
app.logger.info('Complete!')
|
app.logger.info('Complete!')
|
||||||
|
|
||||||
if Config.UDP_PORT and Config.UDP_PORT != '':
|
if Config.UDP_PORT and Config.UDP_PORT != '':
|
||||||
|
from udpserver.udp_main import link_play
|
||||||
process = [Process(target=link_play, args=(
|
process = [Process(target=link_play, args=(
|
||||||
conn2, Config.HOST, int(Config.UDP_PORT)))]
|
conn2, Config.HOST, int(Config.UDP_PORT)))]
|
||||||
[p.start() for p in process]
|
[p.start() for p in process]
|
||||||
|
|||||||
Reference in New Issue
Block a user