Fix Registry Notification use same event time (#12556)

This commit is contained in:
Albumen Kevin 2023-06-19 09:33:36 +08:00 committed by GitHub
parent 55484cbfcc
commit 5f875ea958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ public abstract class RegistryNotifier {
}
scheduler.submit(new NotificationTask(this, notifyTime));
}
try {
while (this.lastEventTime == System.currentTimeMillis()) {
// wait to let event time refresh
Thread.sleep(1);
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
public long getDelayTime() {