mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
直接打印SockException类
This commit is contained in:
@@ -103,7 +103,7 @@ void WebRtcSession::onError(const SockException &err) {
|
||||
//udp链接超时,但是rtc链接不一定超时,因为可能存在链接迁移的情况
|
||||
//在udp链接迁移时,新的WebRtcSession对象将接管WebRtcTransport对象的生命周期
|
||||
//本WebRtcSession对象将在超时后自动销毁
|
||||
WarnP(this) << err.what();
|
||||
WarnP(this) << err;
|
||||
|
||||
if (!_transport) {
|
||||
return;
|
||||
|
||||
@@ -1054,7 +1054,7 @@ void WebRtcTransportImp::onBeforeEncryptRtp(const char *buf, int &len, void *ctx
|
||||
}
|
||||
|
||||
void WebRtcTransportImp::onShutdown(const SockException &ex) {
|
||||
WarnL << ex.what();
|
||||
WarnL << ex;
|
||||
unrefSelf();
|
||||
for (auto &tuple : _ice_server->GetTuples()) {
|
||||
tuple->shutdown(ex);
|
||||
|
||||
Reference in New Issue
Block a user