main: Added quit on last client disconnect
I needed an option to automatically quit wayvnc when the last client disconnect.
Added a condition in client_destroy() and set self->server->do_exit to true, if condition is met.
For example, if wayvnc will only run intentionally by starting via SSH, it automatically quit when I close the VNC connection and no other clients are connected.
Hi, have you read CONTRIBUTING.md?
Hi, have you read CONTRIBUTING.md?
Yes, I did. But obviously not to the very last line.
Thanks for your help.
So, I'm going to rename everything to exit-on-disconnect and change 'q' to 'e' accordingly. Will push later today, when I got the time to test it.
LGTM. Please squash into single commit. Keep in mind that commit messages should be written in imperative mood. A commit message should complete the sentence "When applied, this patch will...".
I.e. "main: Added quit on last client disconnect" might be written "main: Add option to exit on last disconnect" instead.
Pulled