mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
handle tr_torrentClose( NULL ) gracefully.
This commit is contained in:
parent
61fc032dc1
commit
5965d8d1ae
1 changed files with 7 additions and 4 deletions
|
@ -993,6 +993,8 @@ closeTorrent( void * vtor )
|
|||
|
||||
void
|
||||
tr_torrentClose( tr_torrent * tor )
|
||||
{
|
||||
if( tor != NULL )
|
||||
{
|
||||
tr_globalLock( tor->handle );
|
||||
|
||||
|
@ -1001,6 +1003,7 @@ tr_torrentClose( tr_torrent * tor )
|
|||
|
||||
tr_globalUnlock( tor->handle );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*** Completeness
|
||||
|
|
Loading…
Reference in a new issue