module/mpd: thrd_success isn't necessarily 0

This commit is contained in:
Daniel Eklöf 2020-05-03 14:25:17 +02:00
parent bc392d8b0b
commit 0e3bded42d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -559,7 +559,7 @@ refresh_in(struct module *mod, long milli_seconds)
/* Create thread */ /* Create thread */
int r = thrd_create(&m->refresh_thread_id, &refresh_in_thread, ctx); int r = thrd_create(&m->refresh_thread_id, &refresh_in_thread, ctx);
if (r != 0) { if (r != thrd_success) {
LOG_ERR("failed to create refresh thread"); LOG_ERR("failed to create refresh thread");
close(m->refresh_abort_fd); close(m->refresh_abort_fd);
m->refresh_abort_fd = -1; m->refresh_abort_fd = -1;