diff options
Diffstat (limited to 'src/Cedar/Remote.c')
-rw-r--r-- | src/Cedar/Remote.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Cedar/Remote.c b/src/Cedar/Remote.c index cbcae112..5cc45630 100644 --- a/src/Cedar/Remote.c +++ b/src/Cedar/Remote.c @@ -113,13 +113,21 @@ void EndRpc(RPC *rpc) // Release the RPC
void RpcFree(RPC *rpc)
{
+ RpcFreeEx(rpc, false);
+}
+void RpcFreeEx(RPC *rpc, bool no_disconnect)
+{
// Validate arguments
if (rpc == NULL)
{
return;
}
- Disconnect(rpc->Sock);
+ if (no_disconnect == false)
+ {
+ Disconnect(rpc->Sock);
+ }
+
ReleaseSock(rpc->Sock);
DeleteLock(rpc->Lock);
|