1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 18:48:06 +00:00

fix crash-on-exit introduced by stats code

This commit is contained in:
Charles Kerr 2007-11-26 20:44:19 +00:00
parent cf85da1759
commit 033ee7ff58
2 changed files with 2 additions and 2 deletions

View file

@ -119,12 +119,14 @@ tr_statsInit( tr_handle * handle )
stats->cumulative.sessionCount++;
stats->startTime = time(NULL);
handle->sessionStats = stats;
fprintf( stderr, "handle %p sessionStats is %p\n", handle, handle->sessionStats );
}
void
tr_statsClose( tr_handle * handle )
{
tr_session_stats tmp;
fprintf( stderr, "handle %p sessionStats is %p\n", handle, handle->sessionStats );
tr_getCumulativeSessionStats( handle, &tmp );
saveCumulativeStats( &tmp );

View file

@ -326,8 +326,6 @@ tr_closeImpl( void * vh )
for( t=h->torrentList; t!=NULL; t=t->next )
tr_torrentClose( t );
tr_statsClose( h );
tr_peerMgrFree( h->peerMgr );
tr_rcClose( h->upload );