dkforest

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

commit aa2304d752f3e9bfae07df77b1f9b92677551f5c
parent 67159649a5a9064798c13e4cadb90de73642dac3
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 22 May 2023 21:57:52 -0700

prevent refresh from flashing the "lost connection" msg

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

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -4986,7 +4986,7 @@ Loop: if msgTyp.Typ == database.ForceRefresh { _, _ = c.Response().Write([]byte(`<meta http-equiv="refresh" content="0" />`)) - break + return nil } i++ @@ -5015,7 +5015,7 @@ Loop: // Refresh the page to prevent having it growing infinitely bigger if i == 5000 { _, _ = c.Response().Write([]byte(`<meta http-equiv="refresh" content="0" />`)) - break + return nil } }