mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 21:44:19 +00:00
Daemonize worker processes so greed can be stopped with Ctrl+C
This commit is contained in:
parent
177f5b3507
commit
62587f0a19
1 changed files with 2 additions and 1 deletions
3
core.py
3
core.py
|
@ -142,7 +142,8 @@ def main():
|
|||
chat=update.message.chat,
|
||||
telegram_user=update.message.from_user,
|
||||
cfg=user_cfg,
|
||||
engine=engine)
|
||||
engine=engine,
|
||||
daemon=True)
|
||||
# Start the worker
|
||||
log.debug(f"Starting {new_worker.name}")
|
||||
new_worker.start()
|
||||
|
|
Loading…
Reference in a new issue