New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen does not break if the unix socket is removed #4

Open
MyNameIsCosmo opened this Issue Jan 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@MyNameIsCosmo
Copy link

MyNameIsCosmo commented Jan 23, 2019

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 MyNameIsCosmo changed the title listener does not break if the unix socket is removed Listen does not break if the unix socket is removed Jan 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment