You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//check whether a thread is interruptted or not by this is not a good choice.Thread#isInterrupted()
i invoke downloader.puaseDownload(int token);
and it finally interrupts the AsyncWorker,but in AsyncWorker this.isInterrupted() is false.
so observer.rebuild(chunk); is invoked .
that is to say ,invoke downloader.puaseDownload(int token); and observer.rebuild(chunk);will be invoked too.
so, the task's state is wrong.
i invoke
downloader.puaseDownload(int token);
and it finally interrupts the AsyncWorker,but in
AsyncWorker this.isInterrupted()
is false.so
observer.rebuild(chunk);
is invoked .that is to say ,invoke
downloader.puaseDownload(int token);
andobserver.rebuild(chunk);
will be invoked too.so, the
task's
state is wrong.//my solution
The text was updated successfully, but these errors were encountered: