diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2011-02-20 01:24:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2014-10-26 19:03:24 +0000 |
commit | 793746de8e3b67b462fd8900554260dd08e967a4 (patch) | |
tree | 8c1fbe334662be565787910b0d515b24c8ee135b | |
parent | 616f89551e81e6869fadd1038ad626041b92a278 (diff) | |
download | android_hardware_qcom_gps-stable/cm-11.0-XNG3C.tar.gz android_hardware_qcom_gps-stable/cm-11.0-XNG3C.tar.bz2 android_hardware_qcom_gps-stable/cm-11.0-XNG3C.zip |
Destroy client handles after they're closedcm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56stable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Sstable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0shipping/cm-11.0cm-11.0
Make sure the connection to the RPC service is shutdown and
cleaned up when loc_close() is invoked.
[mikeioannina]: Apply for AMSS 50000
Change-Id: I4f8b4d0aa3c2ff9ca5baf4ac07d31aa2e77d6721
-rw-r--r-- | loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c b/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c index 79385fa..b3cf8e5 100644 --- a/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c +++ b/loc_api/libloc_api-rpc/gen-50000/loc_api_rpc_glue.c @@ -362,6 +362,12 @@ int32 loc_close } LOC_GLUE_CHECK_RESULT(stat, int32); + + if (loc_api_clnt != NULL) + clnt_destroy(loc_api_clnt); + + loc_api_clnt = NULL; + return (int32) rets.loc_close_result; } |