pacmd: add missing 'else' keyword

See code above for proper behavior.

Issue detected by PVS Studio
This commit is contained in:
Boris Egorov 2015-01-12 23:52:12 +06:00 committed by Peter Meerwald
parent 1931e40b1c
commit f5c001af5f

View file

@ -333,7 +333,7 @@ int main(int argc, char*argv[]) {
if (watch_socket->revents & POLLHUP) {
ibuf_eof = true;
ibuf_length = 0;
} if (watch_socket->revents & POLLOUT) {
} else if (watch_socket->revents & POLLOUT) {
ssize_t r;
pa_assert(ibuf_length > 0);