forked from external/yambar
module/mpd: thrd_success isn't necessarily 0
This commit is contained in:
parent
bc392d8b0b
commit
0e3bded42d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue