Skip to content

Commit

Permalink
抖音平台 在没有启动监听程序的情况下 优化提示日志,并不结束程序,用户可以通过webui重启
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Feb 4, 2024
1 parent 53a64dd commit d9ac509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dy.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ def on_open(ws):
except KeyboardInterrupt:
logging.warning('程序被强行退出')
finally:
logging.info('关闭连接...可能是直播间不存在或下播或网络问题')
os._exit(0)
logging.warning('关闭ws连接...请确认您是否启动了抖音弹幕监听程序,ws服务正常运行!\n监听程序启动成功后,请重新运行程序进行对接使用!')
# os._exit(0)

# 等待子线程结束
schedule_thread.join()
Expand All @@ -948,6 +948,6 @@ def exit_handler(signum, frame):

signal.signal(signal.SIGINT, exit_handler)
signal.signal(signal.SIGTERM, exit_handler)

start_server()

0 comments on commit d9ac509

Please sign in to comment.