dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 7f5a1dd3dc807e1d5347fb39899ad5731e331458
parent 80c0c1086e2d8923abde6dd5b1ce2353cca60513
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 23 May 2023 04:04:05 -0700

get fresh user data in loop and increase timeout

Diffstat:
Mpkg/web/handlers/handlers.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -4981,8 +4981,10 @@ Loop: default: } + authUserTmp, _ := db.GetUserByID(authUser.ID) + authUser = &authUserTmp managers.ActiveUsers.UpdateUserInRoom(room, managers.NewUserInfo(*authUser, nil)) - _, msgTyp, err := sub.ReceiveTimeout(1 * time.Second) + _, msgTyp, err := sub.ReceiveTimeout(5 * time.Second) if err != nil { continue }