From: Marcus Hoffmann Date: Wed, 7 Feb 2018 19:46:29 +0000 (+0100) Subject: build: clear timeout flag before every build X-Git-Tag: 1.0.1~17^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39a5637df2080b975860604ddefc188172f9363e;p=fdroidserver.git 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. --- diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 0b575847..4ece75d8 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -1102,6 +1102,7 @@ def main(): if options.server and timeout > 0: logging.debug(_('Setting {0} sec timeout for this build').format(timeout)) timer = threading.Timer(timeout, force_halt_build, [timeout]) + timeout_event.clear() timer.start() else: timer = None