mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
protocol-native: -1 is for invalid fd, not 1
This commit is contained in:
parent
88d6e52cc7
commit
c28d0f1282
1 changed files with 1 additions and 1 deletions
|
|
@ -662,7 +662,7 @@ static void destroy_server(struct pw_protocol_server *server)
|
|||
unlink(s->addr.sun_path);
|
||||
if (s->lock_addr[0])
|
||||
unlink(s->lock_addr);
|
||||
if (s->fd_lock != 1)
|
||||
if (s->fd_lock != -1)
|
||||
close(s->fd_lock);
|
||||
free(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue