- (void)stop { @synchronized(self) { if (state == AS_WAITING_FOR_DATA || state == AS_STARTING_FILE_THREAD) return; ...... Here, if calling stop before during the thread is starting or downloading , the stop do nothing, and will leave a wrong state?
{
@synchronized(self)
{
if (state == AS_WAITING_FOR_DATA || state == AS_STARTING_FILE_THREAD)
return;
......
Here, if calling stop before during the thread is starting or downloading , the stop do nothing, and will leave a wrong state?