mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Clear] PixivDownload, RandomIntervalSendTimer 整理代码;
This commit is contained in:
parent
64bca3c8f7
commit
62eabce8f6
@ -77,7 +77,13 @@ public class RandomIntervalSendTimer extends TimerTask {
|
|||||||
* @param startNow 现在开始
|
* @param startNow 现在开始
|
||||||
* @param loop 是否循环
|
* @param loop 是否循环
|
||||||
*/
|
*/
|
||||||
private RandomIntervalSendTimer(long timerId, AutoSender sender, long time, int floatTime, boolean startNow, boolean loop) {
|
private RandomIntervalSendTimer(
|
||||||
|
long timerId,
|
||||||
|
AutoSender sender,
|
||||||
|
long time,
|
||||||
|
int floatTime,
|
||||||
|
boolean startNow,
|
||||||
|
boolean loop) {
|
||||||
this.timerId = timerId;
|
this.timerId = timerId;
|
||||||
this.sender = sender;
|
this.sender = sender;
|
||||||
this.time = time;
|
this.time = time;
|
||||||
@ -122,7 +128,9 @@ public class RandomIntervalSendTimer extends TimerTask {
|
|||||||
try {
|
try {
|
||||||
sender.send();
|
sender.send();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("定时器 {} 执行时发生异常:\n{}", Integer.toHexString(this.hashCode()), Throwables.getStackTraceAsString(e));
|
log.error("定时器 {} 执行时发生异常:\n{}",
|
||||||
|
Integer.toHexString(this.hashCode()),
|
||||||
|
Throwables.getStackTraceAsString(e));
|
||||||
}
|
}
|
||||||
if (this.loop.get()) {
|
if (this.loop.get()) {
|
||||||
start();
|
start();
|
||||||
|
@ -499,7 +499,6 @@ public class PixivDownload {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user