Skip to content

Commit

Permalink
fix(deltachat-rpc-client): construct Thread with target keyword arg…
Browse files Browse the repository at this point in the history
…ument

`run` argument does not exist.

Also add `daemon=True`.
  • Loading branch information
link2xt committed Apr 9, 2024
1 parent 9aa4c0e commit a3b62b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deltachat-rpc-client/src/deltachat_rpc_client/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def _run_cli(
if not client.is_configured():
assert args.email, "Account is not configured and email 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()
client.run_forever()

Expand Down

0 comments on commit a3b62b9

Please sign in to comment.