1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 21:12:05 +00:00

handle tr_torrentClose( NULL ) gracefully.

This commit is contained in:
Charles Kerr 2008-01-16 17:57:13 +00:00
parent 61fc032dc1
commit 5965d8d1ae

View file

@ -993,6 +993,8 @@ closeTorrent( void * vtor )
void void
tr_torrentClose( tr_torrent * tor ) tr_torrentClose( tr_torrent * tor )
{
if( tor != NULL )
{ {
tr_globalLock( tor->handle ); tr_globalLock( tor->handle );
@ -1001,6 +1003,7 @@ tr_torrentClose( tr_torrent * tor )
tr_globalUnlock( tor->handle ); tr_globalUnlock( tor->handle );
} }
}
/** /**
*** Completeness *** Completeness