From 5804d2b2db4403592d029c86ae3478880d7112a0 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 26 Jul 2023 05:14:30 +0300 Subject: [PATCH] Catch RuntimeError for multiple invocation of main() --- minode/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minode/main.py b/minode/main.py index 528e55a..df3efb1 100644 --- a/minode/main.py +++ b/minode/main.py @@ -263,7 +263,10 @@ def start_i2p_listener(): def main(): - multiprocessing.set_start_method('spawn') + try: + multiprocessing.set_start_method('spawn') + except RuntimeError: + pass parse_arguments() logging.basicConfig(