diff options
author | Wim Taymans <wtaymans@redhat.com> | 2018-10-18 11:15:27 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2018-10-18 11:15:27 +0200 |
commit | e29229b6e0009f3b704e9501b13cb3714737d6c9 (patch) | |
tree | 15d1877e2304a1335e4cc36813d890e0b906f918 | |
parent | 6266cd0f485a7426abdb32c3aef7107f587c2cb5 (diff) |
protocol-native: return errno when server failed
this gives a better error code
-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 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); |