threads are daemon mode

This commit is contained in:
callebtc
2023-02-25 12:17:34 +01:00
parent 2872fe3c24
commit 1f5c6f65d1
2 changed files with 4 additions and 4 deletions

View File

@@ -34,8 +34,7 @@ async def dm():
print(f"Your public key: {client.public_key.bech32()}")
t = threading.Thread(
target=client.get_dm,
args=(client.public_key, callback),
target=client.get_dm, args=(client.public_key, callback), daemon=True
)
t.start()
@@ -100,6 +99,7 @@ async def post():
callback,
filters,
),
daemon=True,
)
t.start()