fix native port check
This commit is contained in:
parent
bc022f5903
commit
56f2b5764b
1 changed files with 5 additions and 4 deletions
|
|
@ -433,10 +433,11 @@ class WelcomeScreen(Screen):
|
||||||
if len(port_conflicts) > 3:
|
if len(port_conflicts) > 3:
|
||||||
conflicts.append(f"and {len(port_conflicts) - 3} more")
|
conflicts.append(f"and {len(port_conflicts) - 3} more")
|
||||||
|
|
||||||
# Check native service port
|
# Check native service port only if it's not already running
|
||||||
port_available, error_msg = self.docling_manager.check_port_available()
|
if not self.docling_manager.is_running():
|
||||||
if not port_available:
|
port_available, error_msg = self.docling_manager.check_port_available()
|
||||||
conflicts.append(f"docling (port {self.docling_manager._port})")
|
if not port_available:
|
||||||
|
conflicts.append(f"docling (port {self.docling_manager._port})")
|
||||||
|
|
||||||
# If there are any conflicts, show error and return
|
# If there are any conflicts, show error and return
|
||||||
if conflicts:
|
if conflicts:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue