Skip to content

Commit

Permalink
Merge pull request #3164 from marcusdesai/fix/issue-3163
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Jul 27, 2023
2 parents 1d2bf8e + 7f1ecde commit e8076bf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pelican/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,15 @@ def main(argv=None):
target=listen,
args=(settings.get('BIND'), settings.get('PORT'),
settings.get("OUTPUT_PATH"), excqueue))
p1.start()
p2.start()
exc = excqueue.get()
p1.terminate()
p2.terminate()
if exc is not None:
logger.critical(exc)
try:
p1.start()
p2.start()
exc = excqueue.get()
if exc is not None:
logger.critical(exc)
finally:
p1.terminate()
p2.terminate()
elif args.autoreload:
autoreload(args)
elif args.listen:
Expand Down

0 comments on commit e8076bf

Please sign in to comment.