mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-12 17:10:52 +08:00
程序退出前停止一切录制
This commit is contained in:
@@ -354,6 +354,7 @@ int main(int argc,char *argv[]) {
|
||||
signal(SIGHUP, [](int) { loadIniConfig(); });
|
||||
sem.wait();
|
||||
|
||||
Recorder::stopAll();
|
||||
lock_guard<mutex> lck(s_mtxFlvRecorder);
|
||||
s_mapFlvRecorder.clear();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user