Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions highspy/highspy/highs.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def joinSolve(self, solver_thread: Thread | None = None, interrupt_limit: int =

if solver_thread is not None and interrupt_limit <= 0:
try:
while not result[0]:
while result is None or not result[0]:
result = self.wait(0.1)
return result[1]

Expand All @@ -230,7 +230,7 @@ def joinSolve(self, solver_thread: Thread | None = None, interrupt_limit: int =
elif interrupt_limit > 0:
for count in range(interrupt_limit):
try:
while not result[0]:
while result is None or not result[0]:
result = self.wait(0.1)
return result[1]

Expand Down
Loading