[fix]Catch拒绝任务的异常
This commit is contained in:
@@ -118,7 +118,11 @@ public class DiscoveryDriverTask extends AbstractDiscoveryTask {
|
||||
|
||||
private void launch(long i) {
|
||||
if (!mPool.isShutdown() && !isCancelled()) {
|
||||
mPool.execute(new CheckRunnable(NetInfo.getIpFromLongUnsigned(i)));
|
||||
try {
|
||||
mPool.execute(new CheckRunnable(NetInfo.getIpFromLongUnsigned(i)));
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "线程池异常为:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user