summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-10-18 11:15:27 +0200
committerWim Taymans <wtaymans@redhat.com>2018-10-18 11:15:27 +0200
commite29229b6e0009f3b704e9501b13cb3714737d6c9 (patch)
tree15d1877e2304a1335e4cc36813d890e0b906f918
parent6266cd0f485a7426abdb32c3aef7107f587c2cb5 (diff)
protocol-native: return errno when server failed
this gives a better error code
-rw-r--r--src/modules/module-protocol-native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c
index 65fdaf5c..4816492a 100644
--- a/src/modules/module-protocol-native.c
+++ b/src/modules/module-protocol-native.c
@@ -928,7 +928,7 @@ static int module_init(struct pw_module *module, struct pw_properties *propertie
val = pw_properties_get(pw_core_get_properties(core), PW_CORE_PROP_DAEMON);
if (val && pw_properties_parse_bool(val)) {
if (impl_add_server(this, core, properties) == NULL)
- return -ENOMEM;
+ return -errno;
}
pw_module_add_listener(module, &d->module_listener, &module_events, d);