mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
74f2103cc7
commit
1fba7b1b37
|
@ -14902,7 +14902,8 @@ def runPostsWatchdog(projectVersion: str, httpd) -> None:
|
||||||
httpd.thrPostsQueue.start()
|
httpd.thrPostsQueue.start()
|
||||||
while True:
|
while True:
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
if not httpd.thrPostsQueue.is_alive():
|
if httpd.thrPostsQueue.is_alive():
|
||||||
|
continue
|
||||||
httpd.thrPostsQueue.kill()
|
httpd.thrPostsQueue.kill()
|
||||||
httpd.thrPostsQueue = postsQueueOriginal.clone(runPostsQueue)
|
httpd.thrPostsQueue = postsQueueOriginal.clone(runPostsQueue)
|
||||||
httpd.thrPostsQueue.start()
|
httpd.thrPostsQueue.start()
|
||||||
|
@ -14917,7 +14918,8 @@ def runSharesExpireWatchdog(projectVersion: str, httpd) -> None:
|
||||||
httpd.thrSharesExpire.start()
|
httpd.thrSharesExpire.start()
|
||||||
while True:
|
while True:
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
if not httpd.thrSharesExpire.is_alive():
|
if httpd.thrSharesExpire.is_alive():
|
||||||
|
continue
|
||||||
httpd.thrSharesExpire.kill()
|
httpd.thrSharesExpire.kill()
|
||||||
httpd.thrSharesExpire = sharesExpireOriginal.clone(runSharesExpire)
|
httpd.thrSharesExpire = sharesExpireOriginal.clone(runSharesExpire)
|
||||||
httpd.thrSharesExpire.start()
|
httpd.thrSharesExpire.start()
|
||||||
|
|
|
@ -750,7 +750,8 @@ def runNewswireWatchdog(projectVersion: str, httpd) -> None:
|
||||||
httpd.thrNewswireDaemon.start()
|
httpd.thrNewswireDaemon.start()
|
||||||
while True:
|
while True:
|
||||||
time.sleep(50)
|
time.sleep(50)
|
||||||
if not httpd.thrNewswireDaemon.is_alive():
|
if httpd.thrNewswireDaemon.is_alive():
|
||||||
|
continue
|
||||||
httpd.thrNewswireDaemon.kill()
|
httpd.thrNewswireDaemon.kill()
|
||||||
httpd.thrNewswireDaemon = \
|
httpd.thrNewswireDaemon = \
|
||||||
newswireOriginal.clone(runNewswireDaemon)
|
newswireOriginal.clone(runNewswireDaemon)
|
||||||
|
|
|
@ -167,7 +167,8 @@ def runPostScheduleWatchdog(projectVersion: str, httpd) -> None:
|
||||||
httpd.thrPostSchedule.start()
|
httpd.thrPostSchedule.start()
|
||||||
while True:
|
while True:
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
if not httpd.thrPostSchedule.is_alive():
|
if httpd.thrPostSchedule.is_alive():
|
||||||
|
continue
|
||||||
httpd.thrPostSchedule.kill()
|
httpd.thrPostSchedule.kill()
|
||||||
httpd.thrPostSchedule = \
|
httpd.thrPostSchedule = \
|
||||||
postScheduleOriginal.clone(runPostSchedule)
|
postScheduleOriginal.clone(runPostSchedule)
|
||||||
|
|
Loading…
Reference in New Issue