mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 12:35:58 +08:00
使用static_pointer_cast优化性能
This commit is contained in:
@@ -120,7 +120,7 @@ inline void ShellSession::pleaseInputPasswd() {
|
||||
_loginInterceptor=nullptr;
|
||||
};
|
||||
|
||||
weak_ptr<ShellSession> weakSelf = dynamic_pointer_cast<ShellSession>(shared_from_this());
|
||||
weak_ptr<ShellSession> weakSelf = static_pointer_cast<ShellSession>(shared_from_this());
|
||||
Broadcast::AuthInvoker invoker = [weakSelf,onAuth](const string &errMessage){
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if(!strongSelf){
|
||||
|
||||
Reference in New Issue
Block a user