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