fix another 0.94 prerelease crash report... this one from when finishing verifying a torrent that's running.

This commit is contained in:
Charles Kerr 2007-11-23 02:49:06 +00:00
parent f657bd524b
commit 5ad14e4abc
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ enum
/** /**
* Use SWIFT? * Use SWIFT?
*/ */
static const int SWIFT_ENABLED = 1; static const int SWIFT_ENABLED = 0;
/** /**
* For every byte the peer uploads to us, * For every byte the peer uploads to us,

View File

@ -149,6 +149,7 @@ myDebug( const char * file, int line, const tr_tracker * t, const char * fmt, ..
**** Connections that know how to clean up after themselves **** Connections that know how to clean up after themselves
***/ ***/
#if 0
static int static int
freeConnection( void * evcon ) freeConnection( void * evcon )
{ {
@ -164,12 +165,13 @@ connectionClosedCB( struct evhttp_connection * evcon, void * handle )
has played out */ has played out */
tr_timerNew( handle, freeConnection, evcon, 100 ); tr_timerNew( handle, freeConnection, evcon, 100 );
} }
#endif
static struct evhttp_connection* static struct evhttp_connection*
getConnection( tr_tracker * t, const char * address, int port ) getConnection( tr_tracker * t, const char * address, int port )
{ {
struct evhttp_connection * c = evhttp_connection_new( address, port ); struct evhttp_connection * c = evhttp_connection_new( address, port );
evhttp_connection_set_closecb( c, connectionClosedCB, t->handle ); //evhttp_connection_set_closecb( c, connectionClosedCB, t->handle );
return c; return c;
} }
@ -1013,6 +1015,7 @@ tr_trackerCompleted( tr_tracker * t )
void void
tr_trackerStop( tr_tracker * t ) tr_trackerStop( tr_tracker * t )
{ {
dbgmsg( t, " tr_trackerStop called .... t->isRunning is %d", (int)t->isRunning );
if( t->isRunning ) if( t->isRunning )
{ {
t->isRunning = 0; t->isRunning = 0;