btops
btops copied to clipboard
Listen does not break if the unix socket is removed
If bspwm
is shut down, the unix socket is disconnected
The current listener in main.go
does not check if the unix socket is still connected (or exists), which will keep btops
running until killed.
I think checking sub.conn
on top of sub.Scanner
may solve this issue, maybe using Scanner.Peek
in another function?