Skip to content

Commit

Permalink
fix patch empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yoloyyh committed May 24, 2024
1 parent 6f60543 commit a92e612
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ public void onLimit(LimitConfig config) {

@Override
public void onPatch(PatchConfig config) {
if (config == null || config.getPatches() == null || config.getPatches().length == 0) {
SmithLogger.logger.info("patch may not be download, so not update heartbeat");
return ;
}
for (Patch patch : config.getPatches()) {
SmithLogger.logger.info("install patch: " + patch.getClassName());

Expand Down

0 comments on commit a92e612

Please sign in to comment.