Skip to content

Commit d8cb790

Browse files
Fix unnecessary retries after successful startup
1 parent c0d716e commit d8cb790

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tika/tika.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ def startServer(tikaServerJar, java_path = TikaJava, java_args = TikaJavaArgs, s
690690
# check for INFO string to confirm listening endpoint
691691
if "Started Apache Tika server at" in tika_log_file_tmp.read():
692692
is_started = True
693+
break
693694
else:
694695
log.warning("Failed to see startup log message; retrying...")
695696
time.sleep(TikaStartupSleep)

0 commit comments

Comments
 (0)