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 untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
1 changed files with 4 additions and 1 deletions

View File

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