Minor corrections according to Viktor's review.
This commit is contained in:
parent
80858620b2
commit
4b31ac1c03
2 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ class ZKClient(config: Config) extends Watcher {
|
|||
zk.delete(root + "/" + name, -1)
|
||||
while (true) {
|
||||
ZKClient.this.synchronized {
|
||||
if (zk.getChildren(root, true).size > 0) {
|
||||
if (!zk.getChildren(root, true).isEmpty) {
|
||||
ZKClient.this.wait()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue