Minor corrections according to Viktor's review.

This commit is contained in:
Eugene Vigdorchik 2011-12-21 19:06:51 +04:00
parent 80858620b2
commit 4b31ac1c03
2 changed files with 4 additions and 4 deletions

View file

@ -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()
}
}