Catch RuntimeError for multiple invocation of main()

This commit is contained in:
Lee Miller 2023-07-26 05:14:30 +03:00
parent e505ea2047
commit 5804d2b2db
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -263,7 +263,10 @@ def start_i2p_listener():
def main(): def main():
multiprocessing.set_start_method('spawn') try:
multiprocessing.set_start_method('spawn')
except RuntimeError:
pass
parse_arguments() parse_arguments()
logging.basicConfig( logging.basicConfig(