Skip to content

Commit 299e146

Browse files
authored
Merge pull request #4114 from forfreeday/rix_sonar
modify shutdownhook catch interrupt
2 parents 3d61895 + ed0c7ba commit 299e146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework/src/main/java/org/tron/core/config/TronLogShutdownHook.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public void run() {
3434
Thread.sleep(CHECK_SHUTDOWN_DELAY.getMilliseconds());
3535
}
3636
} catch (InterruptedException e) {
37+
Thread.currentThread().interrupt();
3738
addInfo("TronLogShutdownHook run error :" + e.getMessage());
3839
}
3940
super.stop();

0 commit comments

Comments
 (0)