解决程序退出异常的问题

This commit is contained in:
xiongziliang
2019-03-27 19:02:22 +08:00
parent 5e7260c723
commit 32da13114a
2 changed files with 4 additions and 1 deletions

View File

@@ -103,6 +103,8 @@ int domain(const string &playUrl, const string &pushUrl) {
static semaphore sem;
signal(SIGINT, [](int) { sem.post(); });// 设置退出信号
sem.wait();
pusher.reset();
g_timer.reset();
return 0;
}