mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
build: clear timeout flag before every build
This fixes the weird logging behaviour where after a build that timed out all subsequent failed builds would also show up as timed out.
This commit is contained in:
parent
bc5bf7e0ec
commit
39a5637df2
@ -1102,6 +1102,7 @@ def main():
|
|||||||
if options.server and timeout > 0:
|
if options.server and timeout > 0:
|
||||||
logging.debug(_('Setting {0} sec timeout for this build').format(timeout))
|
logging.debug(_('Setting {0} sec timeout for this build').format(timeout))
|
||||||
timer = threading.Timer(timeout, force_halt_build, [timeout])
|
timer = threading.Timer(timeout, force_halt_build, [timeout])
|
||||||
|
timeout_event.clear()
|
||||||
timer.start()
|
timer.start()
|
||||||
else:
|
else:
|
||||||
timer = None
|
timer = None
|
||||||
|
Loading…
Reference in New Issue
Block a user