mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
[pipe] Temporary "fix" for threading issues
This commit is contained in:
parent
9680fa093a
commit
18fe8fe0ef
@ -667,7 +667,7 @@ setup(struct player_source *ps)
|
||||
DPRINTF(E_LOG, L_PLAYER, "Unknown pipe '%s'\n", ps->path);
|
||||
return -1;
|
||||
}
|
||||
// TODO pipe mutex here
|
||||
|
||||
if (pipe->state != PIPE_OPEN)
|
||||
{
|
||||
pipe->fd = pipe_open(pipe->path, 0);
|
||||
@ -676,9 +676,6 @@ setup(struct player_source *ps)
|
||||
pipe->state = PIPE_OPEN;
|
||||
}
|
||||
|
||||
if (pipe->ev)
|
||||
event_del(pipe->ev); // Avoids autostarting pipe if manually started by user
|
||||
|
||||
worker_execute(pipe_metadata_watch_add, pipe->path, strlen(pipe->path) + 1, 0);
|
||||
|
||||
ps->setup_done = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user