diff options
author | Wim Taymans <wtaymans@redhat.com> | 2018-10-18 11:14:52 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2018-10-18 11:14:52 +0200 |
commit | 6266cd0f485a7426abdb32c3aef7107f587c2cb5 (patch) | |
tree | f8772c21165e06e387377098cc5590a87848771e | |
parent | e5dcacdefbdf50f23b51d3cb172a398aa5e9309f (diff) |
protocol-native: -1 is for invalid fd, not 1
-rw-r--r-- | src/modules/module-protocol-native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c index 84ebb5c1..65fdaf5c 100644 --- a/src/modules/module-protocol-native.c +++ b/src/modules/module-protocol-native.c @@ -729,7 +729,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); } |