Compare commits
2 Commits
af889b733e
...
017cb1d570
Author | SHA1 | Date | |
---|---|---|---|
017cb1d570 | |||
1642d387f3 |
@ -1594,6 +1594,8 @@ mpd_client_parse_kv (char *line, char **value)
|
|||||||
static void
|
static void
|
||||||
mpd_client_update_poller (struct mpd_client *self)
|
mpd_client_update_poller (struct mpd_client *self)
|
||||||
{
|
{
|
||||||
|
if (self->state != MPD_CONNECTED)
|
||||||
|
return;
|
||||||
poller_fd_set (&self->socket_event,
|
poller_fd_set (&self->socket_event,
|
||||||
self->write_buffer.len ? (POLLIN | POLLOUT) : POLLIN);
|
self->write_buffer.len ? (POLLIN | POLLOUT) : POLLIN);
|
||||||
}
|
}
|
||||||
|
@ -38,5 +38,5 @@ if (WITH_CURSES)
|
|||||||
target_link_libraries (wdye PUBLIC ${CURSES_LIBRARIES})
|
target_link_libraries (wdye PUBLIC ${CURSES_LIBRARIES})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_test (NAME simple COMMAND wdye "${PROJECT_SOURCE_DIR}/test.lua")
|
add_test (NAME wdye COMMAND wdye "${PROJECT_SOURCE_DIR}/test.lua")
|
||||||
include (CTest)
|
include (CTest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user