Documentation

This commit is contained in:
Magnus Åhall 2021-12-23 09:29:18 +01:00
parent ad5c651241
commit 6822cf93fb

View File

@ -78,6 +78,8 @@ func main() {
} }
} }
// SessionLoop opens sockets and loops when a socket error occurs, trying to
// open the sockets again.
func SessionLoop() { func SessionLoop() {
var err error var err error
for { for {
@ -107,7 +109,6 @@ func SessionLoop() {
os.Exit(1) os.Exit(1)
} }
/* Loop will return on socket errors, for example when an i3 /* Loop will return on socket errors, for example when an i3
* restart occurs. The socket will not be immediately available * restart occurs. The socket will not be immediately available
* then. Some connection errors can thus occur until i3 has * then. Some connection errors can thus occur until i3 has