btops icon indicating copy to clipboard operation
btops copied to clipboard

Listen does not break if the unix socket is removed

Open MyNameIsCosmo opened this issue 6 years ago • 0 comments

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?

MyNameIsCosmo avatar Jan 23 '19 05:01 MyNameIsCosmo