commit
aa8ffe925e
@ -43,8 +43,8 @@ Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy)
|
|||||||
|
|
||||||
ret = HTTPC_InitializeConnectionSession(context->servhandle, context->httphandle);
|
ret = HTTPC_InitializeConnectionSession(context->servhandle, context->httphandle);
|
||||||
if(ret!=0) {
|
if(ret!=0) {
|
||||||
HTTPC_CloseContext(__httpc_servhandle, context->httphandle);
|
|
||||||
svcCloseHandle(context->servhandle);
|
svcCloseHandle(context->servhandle);
|
||||||
|
HTTPC_CloseContext(__httpc_servhandle, context->httphandle);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy)
|
|||||||
|
|
||||||
ret = HTTPC_SetProxyDefault(context->servhandle, context->httphandle);
|
ret = HTTPC_SetProxyDefault(context->servhandle, context->httphandle);
|
||||||
if(ret!=0) {
|
if(ret!=0) {
|
||||||
HTTPC_CloseContext(__httpc_servhandle, context->httphandle);
|
|
||||||
svcCloseHandle(context->servhandle);
|
svcCloseHandle(context->servhandle);
|
||||||
|
HTTPC_CloseContext(__httpc_servhandle, context->httphandle);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,8 +64,8 @@ Result httpcCloseContext(httpcContext *context)
|
|||||||
{
|
{
|
||||||
Result ret=0;
|
Result ret=0;
|
||||||
|
|
||||||
ret = HTTPC_CloseContext(context->servhandle, context->httphandle);
|
|
||||||
svcCloseHandle(context->servhandle);
|
svcCloseHandle(context->servhandle);
|
||||||
|
ret = HTTPC_CloseContext(__httpc_servhandle, context->httphandle);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user