1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-18 20:50:10 +01:00

Merge branch 'timeout_flag' into 'master'

build: clear timeout flag before every build

See merge request fdroid/fdroidserver!455
This commit is contained in:
Hans-Christoph Steiner 2018-02-12 12:01:46 +01:00
commit d4e64bda4c

View File

@ -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