From 6822cf93fb92eb2a5d6df5eb0a13434b6c2d5903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Thu, 23 Dec 2021 09:29:18 +0100 Subject: [PATCH] Documentation --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6f6c9ef..bd9bdda 100644 --- a/main.go +++ b/main.go @@ -78,6 +78,8 @@ func main() { } } +// SessionLoop opens sockets and loops when a socket error occurs, trying to +// open the sockets again. func SessionLoop() { var err error for { @@ -107,7 +109,6 @@ func SessionLoop() { os.Exit(1) } - /* Loop will return on socket errors, for example when an i3 * restart occurs. The socket will not be immediately available * then. Some connection errors can thus occur until i3 has