Update PublisherConfirms.java

Operator error,The variable should be incremented every time
This commit is contained in:
kuifir 2023-03-04 18:08:29 +08:00 committed by GitHub
parent be558bb949
commit e8d06a646a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ public class PublisherConfirms {
int waited = 0;
while (!condition.getAsBoolean() && waited < timeout.toMillis()) {
Thread.sleep(100L);
waited = +100;
waited += 100;
}
return condition.getAsBoolean();
}