This commit is contained in:
azw 2023-04-24 10:59:58 +00:00
parent 2a4941c0b1
commit b24c4c73e7

View File

@ -143,9 +143,9 @@ std::shared_ptr<PendingAccount> DownStreamMgr::GetPendingAccount(int socket_hand
void DownStreamMgr::RemovePendingAccount(int socket_handle)
{
f8::UdpLog::Instance()->Info("RemovePendingAccount %d", {socket_handle});
auto itr = pending_account_hash_.find(socket_handle);
if (itr != pending_account_hash_.end()) {
f8::UdpLog::Instance()->Info("RemovePendingAccount %d", {socket_handle});
if (!itr->second->timer_wp.expired()) {
f8::Timer::Instance()->Delete(itr->second->timer_wp);
}