Fix daemon start not in debug mode.
This commit is contained in:
parent
8a4632de75
commit
f3202b17ea
|
@ -12,6 +12,7 @@ import queue
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
import time
|
||||||
import typing as T
|
import typing as T
|
||||||
|
|
||||||
from bot_z.bot_z import Operator
|
from bot_z.bot_z import Operator
|
||||||
|
@ -227,7 +228,9 @@ def daemon_process(
|
||||||
os.remove(lifo_path)
|
os.remove(lifo_path)
|
||||||
return
|
return
|
||||||
with context:
|
with context:
|
||||||
logger.debug("Started in background")
|
# This is necessary to trigger the daemon start.
|
||||||
|
time.sleep(1)
|
||||||
|
logger.info("Started in background")
|
||||||
try:
|
try:
|
||||||
listen_commands(lifo_path, fifo_path, cmd_map)
|
listen_commands(lifo_path, fifo_path, cmd_map)
|
||||||
except StopDaemon:
|
except StopDaemon:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user