This commit is contained in:
aozhiwei 2020-06-17 15:44:32 +08:00
parent 8ecff4b8a9
commit a869e2b5d9

View File

@ -33,6 +33,7 @@ void Player::Init()
void Player::UnInit() void Player::UnInit()
{ {
SaveToDB();
timer_attacher.ClearTimerList(); timer_attacher.ClearTimerList();
for (auto& pair : friend_hash_) { for (auto& pair : friend_hash_) {
if (!list_empty(&pair.second.watch_node)) { if (!list_empty(&pair.second.watch_node)) {
@ -629,6 +630,7 @@ void Player::InternalUpdateUserInfo()
} }
); );
NotifyUserInfoUpdate(&myself); NotifyUserInfoUpdate(&myself);
MarkDirty();
} }
void Player::NotifyUserInfoUpdate(Friend* friend_data) void Player::NotifyUserInfoUpdate(Friend* friend_data)