Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Mar 27, 2018
1 parent 96dce50 commit 2ea8fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easythread/src/main/java/com/lzh/easythread/Tools.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ final class Tools {
* @param name non-null, thread name
* @param callback a callback to notify user.
*/
static void resetThread(Thread thread, String name, final Callback callback) {
static void resetThread(Thread thread, final String name, final Callback callback) {
thread.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {
if (callback != null) {
callback.onError(t,e);
callback.onError(name, e);
}
}
});
Expand Down

0 comments on commit 2ea8fa7

Please sign in to comment.