Skip to content

Commit

Permalink
Merge pull request #621 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
抖音平台 在没有启动监听程序的情况下 优化提示日志,并不结束程序,用户可以通过webui重启
  • Loading branch information
Ikaros-521 authored Feb 4, 2024
2 parents b2f47fa + d9ac509 commit 2703e07
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 2703e07

Please sign in to comment.