mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
修复全局变量构造先后顺序导致启动崩溃的问题
This commit is contained in:
parent
7fcd88d02a
commit
599208dd6a
@ -271,7 +271,7 @@ static void sendReport() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static toolkit::onceToken s_token([]() {
|
static toolkit::onceToken s_token([]() {
|
||||||
NoticeCenter::Instance().addListener(nullptr, EventPollerPool::kOnStarted, [](EventPollerPool &pool, size_t &size) {
|
NoticeCenter::Instance().addListener(nullptr, "kBroadcastEventPollerPoolStarted", [](EventPollerPool &pool, size_t &size) {
|
||||||
// 第一次汇报在程序启动后5分钟
|
// 第一次汇报在程序启动后5分钟
|
||||||
pool.getPoller()->doDelayTask(5 * 60 * 1000, []() {
|
pool.getPoller()->doDelayTask(5 * 60 * 1000, []() {
|
||||||
sendReport();
|
sendReport();
|
||||||
|
Loading…
Reference in New Issue
Block a user