mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 15:22:22 +08:00
支持日志上下文
This commit is contained in:
@@ -50,6 +50,7 @@ bool WebRtcPusher::close(MediaSource &sender) {
|
||||
getPoller()->async([weak_self, err]() {
|
||||
auto strong_self = weak_self.lock();
|
||||
if (strong_self) {
|
||||
Logger::setThreadContext(strong_self);
|
||||
strong_self->onShutdown(SockException(Err_shutdown, err));
|
||||
//主动关闭推流,那么不延时注销
|
||||
strong_self->_push_src = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user