Fix crash when Removing empty password protected channel. (#3298)

This commit is contained in:
Paul Coene 2023-04-22 08:49:34 -04:00 committed by GitHub
parent 844efa7e20
commit 8e51bf8b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,11 +701,11 @@ void ChatChannelList::Process() {
LogDebug("Empty temporary password protected channel [{}] being destroyed", LogDebug("Empty temporary password protected channel [{}] being destroyed",
CurrentChannel->GetName().c_str()); CurrentChannel->GetName().c_str());
RemoveChannel(CurrentChannel); iterator.RemoveCurrent();
} }
else {
iterator.Advance(); iterator.Advance();
}
} }
} }