void release ( ) { if ( mCurrentRequests != null ) { synchronized ( mCurrentRequests ) { mCurrentRequests . clear ( ) ; mCurrentRequests = null ; } } if ( mDownloadQueue != null ) { mDownloadQueue = null ; } if ( mDownloadDispatchers != null ) { stop ( ) ; for ( int i = 0 ; i < mDownloadDispatchers . length ; i ++ ) { mDownloadDispatchers [ i ] = null ; } mDownloadDispatchers = null ; } }
Cancels all the pending & running requests and releases all the dispatchers .