File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 7272LIBRE_OFFICE_PORT_CAP = DEFAULT_LIBRE_OFFICE_SERVER_PORT + 1
7373
7474if OCR_WEB_SERVICE_THREADS > 1 :
75- LIBRE_OFFICE_PORT_CAP += OCR_WEB_SERVICE_THREADS
75+ LIBRE_OFFICE_PORT_CAP = DEFAULT_LIBRE_OFFICE_SERVER_PORT + OCR_WEB_SERVICE_THREADS
7676if OCR_WEB_SERVICE_WORKERS > 1 :
77- LIBRE_OFFICE_PORT_CAP += OCR_WEB_SERVICE_WORKERS
77+ LIBRE_OFFICE_PORT_CAP = DEFAULT_LIBRE_OFFICE_SERVER_PORT + OCR_WEB_SERVICE_WORKERS
7878
7979LIBRE_OFFICE_LISTENER_PORT_RANGE = range (DEFAULT_LIBRE_OFFICE_SERVER_PORT , LIBRE_OFFICE_PORT_CAP )
8080LIBRE_OFFICE_NETWORK_INTERFACE = "localhost"
Original file line number Diff line number Diff line change @@ -49,11 +49,10 @@ def start_office_converter_servers():
4949 port_count = 0
5050 for port_num in LIBRE_OFFICE_LISTENER_PORT_RANGE :
5151 if OCR_WEB_SERVICE_WORKERS > 1 :
52- if port_count < 1 :
53- if port_num not in list (loffice_processes .keys ()):
54- port_count += 1
55- if is_port_in_use (port_num ) == False :
56- loffice_processes [port_num ] = start_office_server (port_num )
52+ if port_num not in list (loffice_processes .keys ()):
53+ port_count += 1
54+ if is_port_in_use (port_num ) == False :
55+ loffice_processes [port_num ] = start_office_server (port_num )
5756 else :
5857 break
5958 else :
You can’t perform that action at this time.
0 commit comments