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?
If
bspwmis shut down, the unix socket is disconnectedThe current listener in
main.godoes not check if the unix socket is still connected (or exists), which will keepbtopsrunning until killed.I think checking
sub.connon top ofsub.Scannermay solve this issue, maybe usingScanner.Peekin another function?