diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2012-08-06 14:48:40 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-08-06 16:15:23 +0100 |
commit | fe5b6f0e9c2a6c57e66b87f6babbddc2db8b96a5 (patch) | |
tree | 64e2b594afd0958425f52adf157e797fe8754739 | |
parent | 00d31978f28e694c1d9c7d2a9c22fb907ffffda5 (diff) | |
download | node-startup-controller-fe5b6f0e9c2a6c57e66b87f6babbddc2db8b96a5.tar.gz |
Use a proper error code when unable to handle an unregister request
Send NSM_ERROR_STATUS_ERROR rather than -1 back to the caller when an
unregister request could not be handled successfully.
-rw-r--r-- | nsm-dummy/nsm-consumer-service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nsm-dummy/nsm-consumer-service.c b/nsm-dummy/nsm-consumer-service.c index 1272758..0cae168 100644 --- a/nsm-dummy/nsm-consumer-service.c +++ b/nsm-dummy/nsm-consumer-service.c @@ -412,7 +412,8 @@ nsm_consumer_service_handle_unregister_shutdown_client (NSMConsumer *o else { /* notify the caller that we could not handle the unregister request properly */ - nsm_consumer_complete_un_register_shutdown_client (object, invocation, -1); + nsm_consumer_complete_un_register_shutdown_client (object, invocation, + NSM_ERROR_STATUS_ERROR); } return TRUE; |