Skip to content

Commit 101e778

Browse files
committed
Merge branch 'fix-unnecessary-retries' of https://github.com/michielvandesteeg/tika-python into merge-pr366
2 parents 7f65c3e + d8cb790 commit 101e778

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)