Changeset 13653
- Timestamp:
- Dec 12, 2012, 9:19:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r13651 r13653 174 174 if (limit <= 0) 175 175 allowed = false; 176 177 tr_torrentUnref (tor); 176 178 } 177 179 … … 1877 1879 assert (tr_isTorrent (tor)); 1878 1880 1879 if (--tor->refCount == 0) 1881 if (tor->refCount > 1) 1882 { 1883 --tor->refCount; 1884 } 1885 else if (tor->refCount == 1) 1880 1886 { 1881 1887 tr_session * session = tor->session; … … 1885 1891 tr_runInEventThread (session, closeTorrent, tor); 1886 1892 tr_sessionUnlock (session); 1893 1894 --tor->refCount; 1887 1895 } 1888 1896 }
Note: See TracChangeset
for help on using the changeset viewer.