mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-25 20:59:20 +03:00
Implementation of the JSON-RPC API and the Web Admin interface. (dnobori's internal note: 7579 - 7682)
This commit is contained in:
@ -15,6 +15,10 @@ 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)
|
||||
@ -22,7 +26,11 @@ void RpcFree(RPC *rpc)
|
||||
return;
|
||||
}
|
||||
|
||||
Disconnect(rpc->Sock);
|
||||
if (no_disconnect == false)
|
||||
{
|
||||
Disconnect(rpc->Sock);
|
||||
}
|
||||
|
||||
ReleaseSock(rpc->Sock);
|
||||
|
||||
DeleteLock(rpc->Lock);
|
||||
|
Reference in New Issue
Block a user