mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-24 06:50:53 +08:00
解决程序退出异常的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user