add tr_webClose()
This commit is contained in:
parent
3af15497c7
commit
03572a0ad5
|
@ -390,6 +390,7 @@ tr_closeImpl( void * vh )
|
|||
tr_handle * h = vh;
|
||||
tr_torrent * t;
|
||||
|
||||
tr_webClose( h->web );
|
||||
tr_sharedShuttingDown( h->shared );
|
||||
tr_trackerShuttingDown( h );
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <errno.h>
|
||||
#include <stdio.h> /* snprintf */
|
||||
|
||||
#include <miniupnp/miniwget.h>
|
||||
#include <miniupnp/miniupnpc.h>
|
||||
#include <miniupnp/upnpcommands.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This exemption does not extend to derived works not owned by
|
||||
* the Transmission project.
|
||||
*
|
||||
* $Id:$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdlib.h> /* bsearch */
|
||||
|
@ -308,6 +308,14 @@ tr_webInit( tr_session * session )
|
|||
return web;
|
||||
}
|
||||
|
||||
void
|
||||
tr_webClose( tr_web * web )
|
||||
{
|
||||
evtimer_del( &web->timer );
|
||||
curl_multi_cleanup( web->cm );
|
||||
tr_free( web );
|
||||
}
|
||||
|
||||
/***
|
||||
****
|
||||
***/
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This exemption does not extend to derived works not owned by
|
||||
* the Transmission project.
|
||||
*
|
||||
* $Id:$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef TR_HTTP_H
|
||||
|
@ -18,6 +18,8 @@ typedef struct tr_web tr_web;
|
|||
|
||||
tr_web* tr_webInit( tr_handle * session );
|
||||
|
||||
void tr_webClose( tr_web * );
|
||||
|
||||
typedef void (tr_web_done_func)( tr_handle * session,
|
||||
long response_code,
|
||||
const void * response,
|
||||
|
|
Loading…
Reference in New Issue