mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
module/mpd: refresh thread only resets refresh_abort_fd if it's "ours"
That is, we only reset it if the module main thread haven't already done so (and quite possibly created another eventfd).
This commit is contained in:
parent
b40069616c
commit
d8274c2c9c
1 changed files with 2 additions and 1 deletions
|
@ -350,7 +350,8 @@ refresh_in_thread(void *arg)
|
|||
/* Close abort eventfd */
|
||||
mtx_lock(&mod->lock);
|
||||
close(abort_fd);
|
||||
m->refresh_abort_fd = 0;
|
||||
if (m->refresh_abort_fd == abort_fd)
|
||||
m->refresh_abort_fd = -1;
|
||||
mtx_unlock(&mod->lock);
|
||||
|
||||
/* Aborted? */
|
||||
|
|
Loading…
Add table
Reference in a new issue