summaryrefslogtreecommitdiff
path: root/src/modules/module-protocol-native.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-protocol-native.c')
-rw-r--r--src/modules/module-protocol-native.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c
index 153cf4f6..ca320841 100644
--- a/src/modules/module-protocol-native.c
+++ b/src/modules/module-protocol-native.c
@@ -625,7 +625,8 @@ impl_new_client(struct pw_protocol *protocol,
this->disconnect = impl_disconnect;
this->destroy = impl_destroy;
- impl->flush_event = pw_loop_add_event(remote->core->main_loop, do_flush_event, impl);
+ impl->fd = -1;
+ impl->flush_event = pw_loop_add_event(remote->core->main_loop, do_flush_event, impl);
spa_list_append(&protocol->client_list, &this->link);