mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 11:56:30 +03:00
fix(deltachat-rpc-client): construct Thread with target keyword argument
`run` argument does not exist. Also add `daemon=True`.
This commit is contained in:
@@ -104,7 +104,11 @@ def _run_cli(
|
|||||||
if not client.is_configured():
|
if not client.is_configured():
|
||||||
assert args.email, "Account is not configured and email must be provided"
|
assert args.email, "Account is not configured and email must be provided"
|
||||||
assert args.password, "Account is not configured and password must be provided"
|
assert args.password, "Account is not configured and password must be provided"
|
||||||
configure_thread = Thread(run=client.configure, kwargs={"email": args.email, "password": args.password})
|
configure_thread = Thread(
|
||||||
|
target=client.configure,
|
||||||
|
daemon=True,
|
||||||
|
kwargs={"email": args.email, "password": args.password},
|
||||||
|
)
|
||||||
configure_thread.start()
|
configure_thread.start()
|
||||||
client.run_forever()
|
client.run_forever()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user